diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-05-26 20:17:20 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-05-26 20:17:20 +0000 |
commit | 6f491350660ee1de0b2fb23481102e82c708cc50 (patch) | |
tree | 3501dda2d2a516f7bf41be0c1e46589446a22f23 /tools/opt | |
parent | 2cc3e0a5ec822385deaf386e97bdfdcef5c7ba91 (diff) |
Remove NoFramePointerElim and NoFramePointerElimOverride from TargetOptions and
remove ExecutionEngine's dependence on CodeGen. NFC.
This is a follow-up to r238080.
Differential Revision: http://reviews.llvm.org/D9830
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r-- | tools/opt/opt.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 6f3d8ca4156..55426e7b274 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -396,11 +396,9 @@ int main(int argc, char **argv) { std::unique_ptr<TargetMachine> TM(Machine); - // Override function attributes based on CPUStr, FeaturesStr, and Options. - // Pass AlwaysRecordAttrs=false as we want to override an attribute only when - // the corresponding cl::opt has been provided on opt's command line. - setFunctionAttributes(CPUStr, FeaturesStr, Options, *M, - /* AlwaysRecordAttrs */ false); + // Override function attributes based on CPUStr, FeaturesStr, and command line + // flags. + setFunctionAttributes(CPUStr, FeaturesStr, *M); // If the output is set to be emitted to standard out, and standard out is a // console, print out a warning message and refuse to do it. We don't |