projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix indentation.
[oota-llvm.git]
/
lib
/
Target
/
MBlaze
/
MBlazeTargetMachine.cpp
diff --git
a/lib/Target/MBlaze/MBlazeTargetMachine.cpp
b/lib/Target/MBlaze/MBlazeTargetMachine.cpp
index 62393d0920bbd0ded690ff9352b9143eb8994566..bcdd32fed947d26ca4a800141eb40b74373b71aa 100644
(file)
--- a/
lib/Target/MBlaze/MBlazeTargetMachine.cpp
+++ b/
lib/Target/MBlaze/MBlazeTargetMachine.cpp
@@
-13,8
+13,8
@@
#include "MBlazeTargetMachine.h"
#include "MBlaze.h"
#include "MBlazeTargetMachine.h"
#include "MBlaze.h"
-#include "llvm/PassManager.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/Passes.h"
+#include "llvm/PassManager.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Target/TargetOptions.h"
@@
-38,10
+38,10
@@
MBlazeTargetMachine(const Target &T, StringRef TT,
CodeGenOpt::Level OL)
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
Subtarget(TT, CPU, FS),
CodeGenOpt::Level OL)
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
Subtarget(TT, CPU, FS),
- D
ataLayout
("E-p:32:32:32-i8:8:8-i16:16:16"),
+ D
L
("E-p:32:32:32-i8:8:8-i16:16:16"),
InstrInfo(*this),
FrameLowering(Subtarget),
InstrInfo(*this),
FrameLowering(Subtarget),
- TLInfo(*this), TSInfo(*this),
ELFWriterInfo(*this),
+ TLInfo(*this), TSInfo(*this),
InstrItins(Subtarget.getInstrItineraryData()) {
}
InstrItins(Subtarget.getInstrItineraryData()) {
}
@@
-68,7
+68,7
@@
TargetPassConfig *MBlazeTargetMachine::createPassConfig(PassManagerBase &PM) {
// Install an instruction selector pass using
// the ISelDag to gen MBlaze code.
bool MBlazePassConfig::addInstSelector() {
// Install an instruction selector pass using
// the ISelDag to gen MBlaze code.
bool MBlazePassConfig::addInstSelector() {
-
PM->add
(createMBlazeISelDag(getMBlazeTargetMachine()));
+
addPass
(createMBlazeISelDag(getMBlazeTargetMachine()));
return false;
}
return false;
}
@@
-76,6
+76,6
@@
bool MBlazePassConfig::addInstSelector() {
// machine code is emitted. return true if -print-machineinstrs should
// print out the code after the passes.
bool MBlazePassConfig::addPreEmitPass() {
// machine code is emitted. return true if -print-machineinstrs should
// print out the code after the passes.
bool MBlazePassConfig::addPreEmitPass() {
-
PM->add
(createMBlazeDelaySlotFillerPass(getMBlazeTargetMachine()));
+
addPass
(createMBlazeDelaySlotFillerPass(getMBlazeTargetMachine()));
return true;
}
return true;
}