/// Name-mangler for global names.
///
Mangler *Mang;
- std::set< std::string > Stubs;
+ std::set<std::string> Stubs;
std::set<std::string> Strings;
Printer(std::ostream &o, TargetMachine &tm) : O(o), TM(tm) { }
}
void printMachineInstruction(const MachineInstr *MI);
- void printOp(const MachineOperand &MO,
- bool elideOffsetKeyword = false);
+ void printOp(const MachineOperand &MO, bool elideOffsetKeyword = false);
void printConstantPool(MachineConstantPool *MCP);
bool runOnMachineFunction(MachineFunction &F);
bool doInitialization(Module &M);
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
///
-FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm){
+FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm) {
return new Printer(o, tm);
}
return;
case MachineOperand::MO_GlobalAddress:
if (!elideOffsetKeyword) {
- if(isa<Function>(MO.getGlobal())) {
+ if (isa<Function>(MO.getGlobal())) {
Stubs.insert(Mang->getValueName(MO.getGlobal()));
O << "L" << Mang->getValueName(MO.getGlobal()) << "$stub";
} else {
/// Name-mangler for global names.
///
Mangler *Mang;
- std::set< std::string > Stubs;
+ std::set<std::string> Stubs;
std::set<std::string> Strings;
Printer(std::ostream &o, TargetMachine &tm) : O(o), TM(tm) { }
}
void printMachineInstruction(const MachineInstr *MI);
- void printOp(const MachineOperand &MO,
- bool elideOffsetKeyword = false);
+ void printOp(const MachineOperand &MO, bool elideOffsetKeyword = false);
void printConstantPool(MachineConstantPool *MCP);
bool runOnMachineFunction(MachineFunction &F);
bool doInitialization(Module &M);
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
///
-FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm){
+FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm) {
return new Printer(o, tm);
}
return;
case MachineOperand::MO_GlobalAddress:
if (!elideOffsetKeyword) {
- if(isa<Function>(MO.getGlobal())) {
+ if (isa<Function>(MO.getGlobal())) {
Stubs.insert(Mang->getValueName(MO.getGlobal()));
O << "L" << Mang->getValueName(MO.getGlobal()) << "$stub";
} else {
/// Name-mangler for global names.
///
Mangler *Mang;
- std::set< std::string > Stubs;
+ std::set<std::string> Stubs;
std::set<std::string> Strings;
Printer(std::ostream &o, TargetMachine &tm) : O(o), TM(tm) { }
}
void printMachineInstruction(const MachineInstr *MI);
- void printOp(const MachineOperand &MO,
- bool elideOffsetKeyword = false);
+ void printOp(const MachineOperand &MO, bool elideOffsetKeyword = false);
void printConstantPool(MachineConstantPool *MCP);
bool runOnMachineFunction(MachineFunction &F);
bool doInitialization(Module &M);
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
///
-FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm){
+FunctionPass *createPPCCodePrinterPass(std::ostream &o,TargetMachine &tm) {
return new Printer(o, tm);
}
return;
case MachineOperand::MO_GlobalAddress:
if (!elideOffsetKeyword) {
- if(isa<Function>(MO.getGlobal())) {
+ if (isa<Function>(MO.getGlobal())) {
Stubs.insert(Mang->getValueName(MO.getGlobal()));
O << "L" << Mang->getValueName(MO.getGlobal()) << "$stub";
} else {