mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 15:10:33 +00:00
Make getBaseObject static.
Thanks to David Majnemer for noticing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d681e31b46
commit
fff95d57a4
@ -59,7 +59,7 @@ void GlobalValue::copyAttributesFrom(const GlobalValue *Src) {
|
||||
setDLLStorageClass(Src->getDLLStorageClass());
|
||||
}
|
||||
|
||||
const GlobalObject *getBaseObject(const Constant &C) {
|
||||
static const GlobalObject *getBaseObject(const Constant &C) {
|
||||
// FIXME: We should probably return a base + offset pair for non-zero GEPs.
|
||||
return dyn_cast<GlobalObject>(C.stripPointerCasts());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user