From fff95d57a46e446b8224d1f8982e129fe3238070 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 18 Jun 2014 19:08:47 +0000 Subject: 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 --- lib/IR/Globals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/Globals.cpp b/lib/IR/Globals.cpp index 160ddc9e81..5410cc031d 100644 --- a/lib/IR/Globals.cpp +++ b/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()); } -- cgit v1.2.3