diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-09 23:11:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-09 23:11:33 +0000 |
commit | 4bbd839d10b14cd9028896800faa892e9d8ce3a3 (patch) | |
tree | 23ed99be35c45d537182f4c8d3793080f8b069ae /include/llvm/GlobalVariable.h | |
parent | e3dcf2ea7041246148ccceb87522f876dbc18554 (diff) |
Make isExtern() be a virtual function inherited from GlobalValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalVariable.h')
-rw-r--r-- | include/llvm/GlobalVariable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index 12862cc4f66..372b7a25e66 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -46,7 +46,7 @@ public: /// global variable is defined in some other translation unit, and is thus /// externally defined here. /// - bool isExternal() const { return Operands.empty(); } + virtual bool isExternal() const { return Operands.empty(); } /// hasInitializer - Unless a global variable isExternal(), it has an /// initializer. The initializer for the global variable/constant is held by |