diff options
author | Dehao Chen <dehao@google.com> | 2017-02-01 22:45:09 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2017-02-01 22:45:09 +0000 |
commit | 0944a8c2ec4b7049403855c4195ccd541098c29d (patch) | |
tree | 8332166417f6c7689353dff3017fe5668afc1af2 /llvm/lib/Target/TargetMachine.cpp | |
parent | db00b61860b30203428cee0cda9f45f55ee280c3 (diff) | |
download | bcm5719-llvm-0944a8c2ec4b7049403855c4195ccd541098c29d.tar.gz bcm5719-llvm-0944a8c2ec4b7049403855c4195ccd541098c29d.zip |
Change debug-info-for-profiling from a TargetOption to a function attribute.
Summary: LTO requires the debug-info-for-profiling to be a function attribute.
Reviewers: echristo, mehdi_amini, dblaikie, probinson, aprantl
Reviewed By: mehdi_amini, dblaikie, aprantl
Subscribers: aprantl, probinson, ahatanak, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D29203
llvm-svn: 293833
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 4beecb4dbb6..f84b4fff4df 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -35,10 +35,6 @@ cl::opt<bool> EnableIPRA("enable-ipra", cl::init(false), cl::Hidden, cl::desc("Enable interprocedural register allocation " "to reduce load/store at procedure calls.")); -cl::opt<bool> DebugInfoForProfiling( - "debug-info-for-profiling", cl::init(false), cl::Hidden, - cl::desc("Emit extra debug info to make sample profile more accurate.")); - //--------------------------------------------------------------------------- // TargetMachine Class // @@ -51,8 +47,6 @@ TargetMachine::TargetMachine(const Target &T, StringRef DataLayoutString, RequireStructuredCFG(false), DefaultOptions(Options), Options(Options) { if (EnableIPRA.getNumOccurrences()) this->Options.EnableIPRA = EnableIPRA; - if (DebugInfoForProfiling.getNumOccurrences()) - this->Options.DebugInfoForProfiling = DebugInfoForProfiling; } TargetMachine::~TargetMachine() { |