diff options
author | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2009-11-25 22:44:18 +0000 |
---|---|---|
committer | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2009-11-25 22:44:18 +0000 |
commit | 308f6630a3f413ab32763bc78ab7802df372751d (patch) | |
tree | a3d9619398e9cfbe6b6ceeb1fa850fc90a982326 /tools/lto | |
parent | e7c9195706ce17b5016f74005ecab5523519deea (diff) | |
download | external_llvm-308f6630a3f413ab32763bc78ab7802df372751d.zip external_llvm-308f6630a3f413ab32763bc78ab7802df372751d.tar.gz external_llvm-308f6630a3f413ab32763bc78ab7802df372751d.tar.bz2 |
Rollback changes r89516: Added two SubtargetFeatures::AddFeatures methods, which accept a comma-separated string or already parsed command line parameters as input, and some code re-factoring to use these new methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index f079c2e..060fc4f 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -304,17 +304,10 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg) break; } - // Prepare subtarget feature set for the given command line options. - SubtargetFeatures features; - - // Set the rest of features by default. - // Note: Please keep this after all explict feature settings to make sure - // defaults will not override explicitly set options. - features.AddFeatures( - SubtargetFeatures::getDefaultSubtargetFeatures(llvm::Triple(Triple))); - // construct LTModule, hand over ownership of module and target - _target = march->createTargetMachine(Triple, features.getString()); + const std::string FeatureStr = + SubtargetFeatures::getDefaultSubtargetFeatures(llvm::Triple(Triple)); + _target = march->createTargetMachine(Triple, FeatureStr); } return false; } |