Changes in directory llvm/lib/CodeGen:
MachineDebugInfo.cpp updated: 1.11 -> 1.12 --- Log message: Goodbye nasty macro. --- Diffs of the changes: (+4 -4) MachineDebugInfo.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/lib/CodeGen/MachineDebugInfo.cpp diff -u llvm/lib/CodeGen/MachineDebugInfo.cpp:1.11 llvm/lib/CodeGen/MachineDebugInfo.cpp:1.12 --- llvm/lib/CodeGen/MachineDebugInfo.cpp:1.11 Mon Feb 6 13:12:02 2006 +++ llvm/lib/CodeGen/MachineDebugInfo.cpp Mon Feb 6 15:54:05 2006 @@ -175,7 +175,7 @@ /// GlobalVariable. unsigned DebugInfoDesc::TagFromGlobal(GlobalVariable *GV) { ConstantUInt *C = getUIntOperand(GV, 0); - return C ? C->getValue() : DIINVALID; + return C ? (unsigned)C->getValue() : (unsigned)DIInvalid; } /// DescFactory - Create an instance of debug info descriptor based on Tag. @@ -416,7 +416,7 @@ /// GlobalVariable. unsigned CompileUnitDesc::DebugVersionFromGlobal(GlobalVariable *GV) { ConstantUInt *C = getUIntOperand(GV, 1); - return C ? C->getValue() : DIINVALID; + return C ? (unsigned)C->getValue() : (unsigned)DIInvalid; } /// ApplyToFields - Target the visitor to the fields of the CompileUnitDesc. @@ -684,12 +684,12 @@ // Get the Tag unsigned Tag = DebugInfoDesc::TagFromGlobal(GV); - if (Tag == DIINVALID) return false; + if (Tag == DIInvalid) return false; // If a compile unit we need the debug version. if (Tag == DI_TAG_compile_unit) { DebugVersion = CompileUnitDesc::DebugVersionFromGlobal(GV); - if (DebugVersion == DIINVALID) return false; + if (DebugVersion == DIInvalid) return false; } // Construct an empty DebugInfoDesc. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits