[llvm] r211208 - Make getBaseObject static.
Rafael Espindola
rafael.espindola at gmail.com
Wed Jun 18 12:08:48 PDT 2014
Author: rafael
Date: Wed Jun 18 14:08:47 2014
New Revision: 211208
URL: http://llvm.org/viewvc/llvm-project?rev=211208&view=rev
Log:
Make getBaseObject static.
Thanks to David Majnemer for noticing.
Modified:
llvm/trunk/lib/IR/Globals.cpp
Modified: llvm/trunk/lib/IR/Globals.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Globals.cpp?rev=211208&r1=211207&r2=211208&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Globals.cpp (original)
+++ llvm/trunk/lib/IR/Globals.cpp Wed Jun 18 14:08:47 2014
@@ -59,7 +59,7 @@ void GlobalValue::copyAttributesFrom(con
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());
}
More information about the llvm-commits
mailing list