* 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
This commit is contained in:
Chris Lattner 2002-10-29 20:45:04 +00:00
parent 5f9a61a598
commit 4aba5e34a1

View File

@ -5,7 +5,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/Bytecode/Reader.h" #include "llvm/Bytecode/Reader.h"
#include "llvm/Target/Sparc.h" #include "llvm/Target/TargetMachineImpls.h"
#include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachine.h"
#include "llvm/Transforms/Instrumentation/TraceValues.h" #include "llvm/Transforms/Instrumentation/TraceValues.h"
#include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/Scalar.h"
@ -192,9 +192,9 @@ main(int argc, char **argv)
{ {
const PassInfo *Opt = OptimizationList[i]; const PassInfo *Opt = OptimizationList[i];
if (strcmp(Opt->getPassArgument(), "trace") == 0) if (std::string(Opt->getPassArgument()) == "trace")
TraceFunctions = !(TraceBasicBlocks = true); TraceFunctions = !(TraceBasicBlocks = true);
else if (strcmp(Opt->getPassArgument(), "tracem") == 0) else if (std::string(Opt->getPassArgument()) == "tracem")
TraceFunctions = !(TraceBasicBlocks = false); TraceFunctions = !(TraceBasicBlocks = false);
else else
{ // handle other passes as normal optimization passes { // handle other passes as normal optimization passes