diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-02-06 21:54:05 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-02-06 21:54:05 +0000 |
commit | f60c2414abadd31217e7a797a3e70c8330ff372e (patch) | |
tree | 072dad6a0d118b9afa35dee95eefbcd73bef768e /lib/CodeGen/MachineDebugInfo.cpp | |
parent | c2f0c8def74dcdf5b142291029fdfc2a8d161cb9 (diff) |
Goodbye nasty macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineDebugInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp index 9cc8cae4ac..28fc9c306f 100644 --- a/lib/CodeGen/MachineDebugInfo.cpp +++ b/lib/CodeGen/MachineDebugInfo.cpp @@ -175,7 +175,7 @@ static ConstantUInt *getUIntOperand(GlobalVariable *GV, unsigned i) { /// 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 @@ public: /// 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 @@ bool DIVerifier::Verify(GlobalVariable *GV) { // 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. |