aboutsummaryrefslogtreecommitdiff
path: root/gdb/expop.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-21 14:00:05 -0700
committerTom Tromey <tom@tromey.com>2023-02-08 10:58:13 -0700
commit0671cc8b19d5b96f448a0a487cf12fe772df08fb (patch)
tree90de0abcb51e213ea0c775dc4cf68837bb0f17ba /gdb/expop.h
parentb885aea1bb987435929b4298982ac6fc27f69403 (diff)
downloadbinutils-0671cc8b19d5b96f448a0a487cf12fe772df08fb.zip
binutils-0671cc8b19d5b96f448a0a487cf12fe772df08fb.tar.gz
binutils-0671cc8b19d5b96f448a0a487cf12fe772df08fb.tar.bz2
Don't include block.h from expop.h
expop.h needs block.h for a single inline function. However, I don't think most of the check_objfile functions need to be defined in the header (just the templates). This patch moves the one offending function and removes the include.
Diffstat (limited to 'gdb/expop.h')
-rw-r--r--gdb/expop.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/expop.h b/gdb/expop.h
index 9e6ab0d..bfe55e4 100644
--- a/gdb/expop.h
+++ b/gdb/expop.h
@@ -20,7 +20,6 @@
#ifndef EXPOP_H
#define EXPOP_H
-#include "block.h"
#include "c-lang.h"
#include "cp-abi.h"
#include "expression.h"
@@ -229,11 +228,8 @@ check_objfile (struct symbol *sym, struct objfile *objfile)
return check_objfile (sym->objfile (), objfile);
}
-static inline bool
-check_objfile (const struct block *block, struct objfile *objfile)
-{
- return check_objfile (block_objfile (block), objfile);
-}
+extern bool check_objfile (const struct block *block,
+ struct objfile *objfile);
static inline bool
check_objfile (const block_symbol &sym, struct objfile *objfile)