diff options
| author | Zhou Sheng <zhousheng00@gmail.com> | 2007-01-11 12:24:14 +0000 |
|---|---|---|
| committer | Zhou Sheng <zhousheng00@gmail.com> | 2007-01-11 12:24:14 +0000 |
| commit | 75b871fb1ecb121f84612864d97e79d90930232c (patch) | |
| tree | af683c54f708c4ed3c49607a754c744fb1b1932d /llvm/lib/CodeGen/MachineDebugInfo.cpp | |
| parent | 691b263e07d48c6a34eed2f0dd6e8150ff51a286 (diff) | |
| download | bcm5719-llvm-75b871fb1ecb121f84612864d97e79d90930232c.tar.gz bcm5719-llvm-75b871fb1ecb121f84612864d97e79d90930232c.zip | |
For PR1043:
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
llvm-svn: 33073
Diffstat (limited to 'llvm/lib/CodeGen/MachineDebugInfo.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineDebugInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineDebugInfo.cpp b/llvm/lib/CodeGen/MachineDebugInfo.cpp index 041a88cdca5..5d9de9ff347 100644 --- a/llvm/lib/CodeGen/MachineDebugInfo.cpp +++ b/llvm/lib/CodeGen/MachineDebugInfo.cpp @@ -211,7 +211,7 @@ public: } virtual void Apply(bool &Field) { Constant *C = CI->getOperand(I++); - Field = cast<ConstantBool>(C)->getValue(); + Field = cast<ConstantInt>(C)->getBoolValue(); } virtual void Apply(std::string &Field) { Constant *C = CI->getOperand(I++); @@ -276,7 +276,7 @@ public: Elements.push_back(ConstantInt::get(Type::Int64Ty, uint64_t(Field))); } virtual void Apply(bool &Field) { - Elements.push_back(ConstantBool::get(Field)); + Elements.push_back(ConstantInt::get(Field)); } virtual void Apply(std::string &Field) { Elements.push_back(SR.getString(Field)); @@ -426,7 +426,7 @@ public: } virtual void Apply(bool &Field) { Constant *C = CI->getOperand(I++); - IsValid = IsValid && isa<ConstantBool>(C); + IsValid = IsValid && isa<ConstantInt>(C) && C->getType() == Type::BoolTy; } virtual void Apply(std::string &Field) { Constant *C = CI->getOperand(I++); |

