diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-30 01:26:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-30 01:26:17 +0000 |
commit | c61089a6c231ecf07631d767d2d1db0ec0816262 (patch) | |
tree | 28387b2d56261ad228979fd386635c9d12f4eae1 /clang/lib/Analysis/MemRegion.cpp | |
parent | e8eca73cddbf6a6b4adb07b7eef403226b8a6798 (diff) | |
download | bcm5719-llvm-c61089a6c231ecf07631d767d2d1db0ec0816262.tar.gz bcm5719-llvm-c61089a6c231ecf07631d767d2d1db0ec0816262.zip |
Key decisions about 'bool' vs '_Bool' to be based on a new flag in langoptions.
This is simple enough, but then I thought it would be nice to make PrintingPolicy
get a LangOptions so that various things can key off "bool" and "C++" independently.
This spiraled out of control. There are many fixme's, but I think things are slightly
better than they were before.
One thing that can be improved: CFG should probably have an ASTContext pointer in it,
which would simplify its clients.
llvm-svn: 74493
Diffstat (limited to 'clang/lib/Analysis/MemRegion.cpp')
-rw-r--r-- | clang/lib/Analysis/MemRegion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/MemRegion.cpp b/clang/lib/Analysis/MemRegion.cpp index c8e027579a3..96fced919ef 100644 --- a/clang/lib/Analysis/MemRegion.cpp +++ b/clang/lib/Analysis/MemRegion.cpp @@ -184,7 +184,8 @@ void FieldRegion::print(llvm::raw_ostream& os) const { } void StringRegion::print(llvm::raw_ostream& os) const { - Str->printPretty(os); + LangOptions LO; // FIXME. + Str->printPretty(os, 0, PrintingPolicy(LO)); } void SymbolicRegion::print(llvm::raw_ostream& os) const { |