aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-07 22:35:38 +0000
committerChris Lattner <sabre@nondot.org>2008-06-07 22:35:38 +0000
commitc250aae4f645833aed3a6321bc8598f7330dce8d (patch)
tree202d6f86f623b4aa12f0aa2cd014f10beda07ff7 /lib/AST/StmtPrinter.cpp
parentda8249e57f3badecf925571881fe57243935c6c1 (diff)
capture whether a CharacterLiteral was wide or not in the AST.
Patch by Mike Stump! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtPrinter.cpp')
-rw-r--r--lib/AST/StmtPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp
index 5e347435b6..dc686f9bf5 100644
--- a/lib/AST/StmtPrinter.cpp
+++ b/lib/AST/StmtPrinter.cpp
@@ -513,8 +513,9 @@ void StmtPrinter::VisitPreDefinedExpr(PreDefinedExpr *Node) {
}
void StmtPrinter::VisitCharacterLiteral(CharacterLiteral *Node) {
- // FIXME should print an L for wchar_t constants
unsigned value = Node->getValue();
+ if (Node->isWide())
+ OS << "L";
switch (value) {
case '\\':
OS << "'\\\\'";