aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp6
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