summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-29 20:38:28 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-29 20:38:28 +0000
commit7de5966d76fea50cdf1ded7ccd2677594a12ef36 (patch)
treea823b08ce247d4b9447e707117392e469ee0936f /clang/lib/CodeGen/CGDebugInfo.cpp
parent006459ecd4ab07c8a1daa2d005533649261f8c4a (diff)
downloadbcm5719-llvm-7de5966d76fea50cdf1ded7ccd2677594a12ef36.tar.gz
bcm5719-llvm-7de5966d76fea50cdf1ded7ccd2677594a12ef36.zip
Create a new PrintingPolicy class, which we pass down through the AST
printing logic to help customize the output. For now, we use this rather than a special flag to suppress the "struct" when printing "struct X" and to print the Boolean type as "bool" in C++ but "_Bool" in C. llvm-svn: 72590
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 0c6ed4b8894..049e716c7c1 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -150,7 +150,9 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT,
uint64_t Align = M->getContext().getTypeAlign(BT);
uint64_t Offset = 0;
- return DebugFactory.CreateBasicType(Unit, BT->getName(), Unit, 0, Size, Align,
+ return DebugFactory.CreateBasicType(Unit,
+ BT->getName(M->getContext().getLangOptions().CPlusPlus),
+ Unit, 0, Size, Align,
Offset, /*flags*/ 0, Encoding);
}
OpenPOWER on IntegriCloud