summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-06-05 07:05:05 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-06-05 07:05:05 +0000
commit9ffd4a9b9624eb38e8fcc946faf8134b51dbf94b (patch)
treef2f84b9538acf8d61b8a89b0bd954926bec05604 /clang/lib/Lex
parentd7bcad67d4b72c48e44f846d03b80cd98403b08d (diff)
downloadbcm5719-llvm-9ffd4a9b9624eb38e8fcc946faf8134b51dbf94b.tar.gz
bcm5719-llvm-9ffd4a9b9624eb38e8fcc946faf8134b51dbf94b.zip
Move CharIsSigned from TargetInfo to LangOptions.
llvm-svn: 72928
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/LiteralSupport.cpp2
-rw-r--r--clang/lib/Lex/PPExpressions.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp
index 0324c0b0128..4d10974df2c 100644
--- a/clang/lib/Lex/LiteralSupport.cpp
+++ b/clang/lib/Lex/LiteralSupport.cpp
@@ -691,7 +691,7 @@ CharLiteralParser::CharLiteralParser(const char *begin, const char *end,
// character constants are not sign extended in the this implementation:
// '\xFF\xFF' = 65536 and '\x0\xFF' = 255, which matches GCC.
if (!IsWide && NumCharsSoFar == 1 && (Value & 128) &&
- PP.getTargetInfo().isCharSigned())
+ PP.getLangOptions().CharIsSigned)
Value = (signed char)Value;
}
diff --git a/clang/lib/Lex/PPExpressions.cpp b/clang/lib/Lex/PPExpressions.cpp
index 709e316b803..c98acc4deb3 100644
--- a/clang/lib/Lex/PPExpressions.cpp
+++ b/clang/lib/Lex/PPExpressions.cpp
@@ -232,7 +232,7 @@ static bool EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT,
// Set the value.
Val = Literal.getValue();
// Set the signedness.
- Val.setIsUnsigned(!TI.isCharSigned());
+ Val.setIsUnsigned(!PP.getLangOptions().CharIsSigned);
if (Result.Val.getBitWidth() > Val.getBitWidth()) {
Result.Val = Val.extend(Result.Val.getBitWidth());
OpenPOWER on IntegriCloud