[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Jul 26 11:49:08 PDT 2004
Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.105 -> 1.106
---
Log message:
Fix indentation: should be 2 spaces.
---
Diffs of the changes: (+25 -25)
Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.105 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.106
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.105 Mon Jul 26 13:45:48 2004
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp Mon Jul 26 13:48:58 2004
@@ -41,34 +41,34 @@
cl::desc("Emit X86 assembly code suitable for consumption by cygwin"));
struct GasBugWorkaroundEmitter : public MachineCodeEmitter {
- GasBugWorkaroundEmitter(std::ostream& o)
- : O(o), OldFlags(O.flags()), firstByte(true) {
- O << std::hex;
- }
+ GasBugWorkaroundEmitter(std::ostream& o)
+ : O(o), OldFlags(O.flags()), firstByte(true) {
+ O << std::hex;
+ }
- ~GasBugWorkaroundEmitter() {
- O.flags(OldFlags);
- O << "\t# ";
- }
+ ~GasBugWorkaroundEmitter() {
+ O.flags(OldFlags);
+ O << "\t# ";
+ }
- virtual void emitByte(unsigned char B) {
- if (!firstByte) O << "\n\t";
- firstByte = false;
- O << ".byte 0x" << (unsigned) B;
- }
+ virtual void emitByte(unsigned char B) {
+ if (!firstByte) O << "\n\t";
+ firstByte = false;
+ O << ".byte 0x" << (unsigned) B;
+ }
- // These should never be called
- virtual void emitWord(unsigned W) { assert(0); }
- virtual uint64_t getGlobalValueAddress(GlobalValue *V) { abort(); }
- virtual uint64_t getGlobalValueAddress(const std::string &Name) { abort(); }
- virtual uint64_t getConstantPoolEntryAddress(unsigned Index) { abort(); }
- virtual uint64_t getCurrentPCValue() { abort(); }
- virtual uint64_t forceCompilationOf(Function *F) { abort(); }
+ // These should never be called
+ virtual void emitWord(unsigned W) { assert(0); }
+ virtual uint64_t getGlobalValueAddress(GlobalValue *V) { abort(); }
+ virtual uint64_t getGlobalValueAddress(const std::string &Name) { abort(); }
+ virtual uint64_t getConstantPoolEntryAddress(unsigned Index) { abort(); }
+ virtual uint64_t getCurrentPCValue() { abort(); }
+ virtual uint64_t forceCompilationOf(Function *F) { abort(); }
private:
- std::ostream& O;
- std::ios::fmtflags OldFlags;
- bool firstByte;
+ std::ostream& O;
+ std::ios::fmtflags OldFlags;
+ bool firstByte;
};
struct Printer : public MachineFunctionPass {
@@ -920,8 +920,8 @@
MI->getOpcode() == X86::FLD80m ||
MI->getOpcode() == X86::FILD64m ||
MI->getOpcode() == X86::FISTP64m) {
- GasBugWorkaroundEmitter gwe(O);
- X86::emitInstruction(gwe, (X86InstrInfo&)*TM.getInstrInfo(), *MI);
+ GasBugWorkaroundEmitter gwe(O);
+ X86::emitInstruction(gwe, (X86InstrInfo&)*TM.getInstrInfo(), *MI);
}
O << TII.getName(MI->getOpcode()) << " ";
More information about the llvm-commits
mailing list