forked from OSchip/llvm-project
* Remove explicit strcmp calls
* Rename Sparc.h to TargetMachineImpls.h llvm-svn: 4406
This commit is contained in:
parent
c87281c349
commit
23930c582c
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue