aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r--lib/Target/TargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index f4b9039f48..90f10c1fcc 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -27,6 +27,7 @@ namespace llvm {
bool NoExcessFPPrecision;
int PatternISelTriState;
bool UnsafeFPMath;
+ bool PICEnabled;
};
namespace {
cl::opt<bool, true> PrintCode("print-machineinstrs",
@@ -52,6 +53,11 @@ namespace {
cl::desc("Enable optimizations that may decrease FP precision"),
cl::location(UnsafeFPMath),
cl::init(false));
+ cl::opt<bool, true>
+ EnablePIC("enable-pic",
+ cl::desc("Enable generation of position independant code"),
+ cl::location(PICEnabled),
+ cl::init(false));
};
//---------------------------------------------------------------------------