projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8af5cb2
)
Make getBaseObject static.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 18 Jun 2014 19:08:47 +0000
(19:08 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 18 Jun 2014 19:08:47 +0000
(19:08 +0000)
Thanks to David Majnemer for noticing.
llvm-svn: 211208
llvm/lib/IR/Globals.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Globals.cpp
b/llvm/lib/IR/Globals.cpp
index
160ddc9
..
5410cc0
100644
(file)
--- 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<GlobalObject>(C.stripPointerCasts());
}