summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2016-04-22 21:41:58 +0000
committerSriraman Tallam <tmsriram@google.com>2016-04-22 21:41:58 +0000
commit3cb773431d15b97c23e5b9258c9c061857dbc196 (patch)
tree2e06271096143a50cd72d7e2228a34128ef1fc4c /llvm/lib/Target/X86/X86Subtarget.h
parent6cac934051693ae92cbfabfe73889659c9afe618 (diff)
downloadbcm5719-llvm-3cb773431d15b97c23e5b9258c9c061857dbc196.tar.gz
bcm5719-llvm-3cb773431d15b97c23e5b9258c9c061857dbc196.zip
Differential Revision: http://reviews.llvm.org/D19040
llvm-svn: 267229
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index 7713656722a..170e5c383ae 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -548,6 +548,14 @@ public:
}
}
+ /// Determine if this global is defined in a Position Independent
+ /// Executable (PIE) where its definition cannot be interposed.
+ bool isGlobalDefinedInPIE(const GlobalValue *GV,
+ const TargetMachine &TM) const {
+ return TM.Options.PositionIndependentExecutable &&
+ !GV->isDeclarationForLinker();
+ }
+
/// ClassifyGlobalReference - Classify a global variable reference for the
/// current subtarget according to how we should reference it in a non-pcrel
/// context.
OpenPOWER on IntegriCloud