diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:23:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:23:37 +0000 |
| commit | a2e25e5e72002a6c5b24f609c9375952cdcb7368 (patch) | |
| tree | 13158ad7d8b7bdc8d98a31e582e5304599e985a8 /clang/lib/Analysis/RValues.cpp | |
| parent | 0c19df487136c4368757dc865b13dcc9c897dfe4 (diff) | |
| download | bcm5719-llvm-a2e25e5e72002a6c5b24f609c9375952cdcb7368.tar.gz bcm5719-llvm-a2e25e5e72002a6c5b24f609c9375952cdcb7368.zip | |
adjust to changes in various APIs from LLVM. We can't print
an APInt directly to an ostream now, so add some hacks. It would
be better to switch all of the bugreport (and friends) stuff over
to raw_ostream.
llvm-svn: 55264
Diffstat (limited to 'clang/lib/Analysis/RValues.cpp')
| -rw-r--r-- | clang/lib/Analysis/RValues.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Analysis/RValues.cpp b/clang/lib/Analysis/RValues.cpp index b372ab3831b..56bb250213d 100644 --- a/clang/lib/Analysis/RValues.cpp +++ b/clang/lib/Analysis/RValues.cpp @@ -352,7 +352,7 @@ void NonLVal::print(std::ostream& Out) const { switch (getSubKind()) { case nonlval::ConcreteIntKind: - Out << cast<nonlval::ConcreteInt>(this)->getValue(); + Out << cast<nonlval::ConcreteInt>(this)->getValue().getZExtValue(); if (cast<nonlval::ConcreteInt>(this)->getValue().isUnsigned()) Out << 'U'; @@ -369,7 +369,7 @@ void NonLVal::print(std::ostream& Out) const { Out << '$' << C.getConstraint().getSymbol() << ' '; printOpcode(Out, C.getConstraint().getOpcode()); - Out << ' ' << C.getConstraint().getInt(); + Out << ' ' << C.getConstraint().getInt().getZExtValue(); if (C.getConstraint().getInt().isUnsigned()) Out << 'U'; @@ -395,7 +395,8 @@ void LVal::print(std::ostream& Out) const { switch (getSubKind()) { case lval::ConcreteIntKind: - Out << cast<lval::ConcreteInt>(this)->getValue() << " (LVal)"; + Out << cast<lval::ConcreteInt>(this)->getValue().getZExtValue() + << " (LVal)"; break; case lval::SymbolValKind: |

