From: Rafael Espindola Date: Wed, 18 Jun 2014 19:08:47 +0000 (+0000) Subject: Make getBaseObject static. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccf10727b066de682b57314ba5b6ed0fda5f236f;p=platform%2Fupstream%2Fllvm.git Make getBaseObject static. Thanks to David Majnemer for noticing. llvm-svn: 211208 --- diff --git a/llvm/lib/IR/Globals.cpp b/llvm/lib/IR/Globals.cpp index 160ddc9..5410cc0 100644 --- a/llvm/lib/IR/Globals.cpp +++ b/llvm/lib/IR/Globals.cpp @@ -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(C.stripPointerCasts()); }