diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 20:45:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 20:45:04 +0000 |
commit | 4aba5e34a10588ced9d9c068008e8b28016dfd62 (patch) | |
tree | 3bc2b3c63140b7e62f99964746cce7c5f2ba1a37 /tools/llc | |
parent | 5f9a61a598228ac8698188d46a70695a528fc2d6 (diff) | |
download | external_llvm-4aba5e34a10588ced9d9c068008e8b28016dfd62.zip external_llvm-4aba5e34a10588ced9d9c068008e8b28016dfd62.tar.gz external_llvm-4aba5e34a10588ced9d9c068008e8b28016dfd62.tar.bz2 |
* Remove explicit strcmp calls
* Rename Sparc.h to TargetMachineImpls.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r-- | tools/llc/llc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index f524e32..8fb3124 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -5,7 +5,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Bytecode/Reader.h" -#include "llvm/Target/Sparc.h" +#include "llvm/Target/TargetMachineImpls.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Transforms/Instrumentation/TraceValues.h" #include "llvm/Transforms/Scalar.h" @@ -192,9 +192,9 @@ main(int argc, char **argv) { const PassInfo *Opt = OptimizationList[i]; - if (strcmp(Opt->getPassArgument(), "trace") == 0) + if (std::string(Opt->getPassArgument()) == "trace") TraceFunctions = !(TraceBasicBlocks = true); - else if (strcmp(Opt->getPassArgument(), "tracem") == 0) + else if (std::string(Opt->getPassArgument()) == "tracem") TraceFunctions = !(TraceBasicBlocks = false); else { // handle other passes as normal optimization passes |