Make getBaseObject static.

Thanks to David Majnemer for noticing.

llvm-svn: 211208
This commit is contained in:
Rafael Espindola 2014-06-18 19:08:47 +00:00
parent 8af5cb2c28
commit ccf10727b0
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void GlobalValue::copyAttributesFrom(const GlobalValue *Src) {
setDLLStorageClass(Src->getDLLStorageClass()); 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. // FIXME: We should probably return a base + offset pair for non-zero GEPs.
return dyn_cast<GlobalObject>(C.stripPointerCasts()); return dyn_cast<GlobalObject>(C.stripPointerCasts());
} }