mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
* 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:
parent
5f9a61a598
commit
4aba5e34a1
@ -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
Block a user