[llvm-commits] CVS: llvm/tools/llc/llc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 14:46:00 PST 2002
Changes in directory llvm/tools/llc:
llc.cpp updated: 1.60 -> 1.61
---
Log message:
* Remove explicit strcmp calls
* Rename Sparc.h to TargetMachineImpls.h
---
Diffs of the changes:
Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.60 llvm/tools/llc/llc.cpp:1.61
--- llvm/tools/llc/llc.cpp:1.60 Wed Sep 25 18:47:49 2002
+++ llvm/tools/llc/llc.cpp Tue Oct 29 14:45:04 2002
@@ -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 @@
{
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
More information about the llvm-commits
mailing list