summaryrefslogtreecommitdiff
path: root/include/llvm/IR/GlobalVariable.h
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2013-10-27 03:08:44 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2013-10-27 03:08:44 +0000
commit69bd41dfe33f24414be281ba5e2204b7348c33ae (patch)
treed27a491b8bbcfd934d23ff82ddaa8323f8dc590d /include/llvm/IR/GlobalVariable.h
parent2d60c0945102e6887fcdc752a7b714546afae354 (diff)
downloadllvm-69bd41dfe33f24414be281ba5e2204b7348c33ae.tar.gz
llvm-69bd41dfe33f24414be281ba5e2204b7348c33ae.tar.bz2
llvm-69bd41dfe33f24414be281ba5e2204b7348c33ae.tar.xz
Revert r193251 : Use address-taken to disambiguate global variable and indirect memops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/GlobalVariable.h')
-rw-r--r--include/llvm/IR/GlobalVariable.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/IR/GlobalVariable.h b/include/llvm/IR/GlobalVariable.h
index a5ab97db23..bfed50786e 100644
--- a/include/llvm/IR/GlobalVariable.h
+++ b/include/llvm/IR/GlobalVariable.h
@@ -48,7 +48,6 @@ class GlobalVariable : public GlobalValue, public ilist_node<GlobalVariable> {
// can change from its initial
// value before global
// initializers are run?
- bool notAddrTaken : 1; // Dose not have address taken.
public:
// allocate space for exactly one operand
@@ -175,9 +174,6 @@ public:
isExternallyInitializedConstant = Val;
}
- void setAddressMaybeTaken(bool Val) { notAddrTaken = !Val; }
- bool AddressMaybeTaken(void) const { return !notAddrTaken; }
-
/// copyAttributesFrom - copy all additional attributes (those not needed to
/// create a GlobalVariable) from the GlobalVariable Src to this one.
void copyAttributesFrom(const GlobalValue *Src);