[cfe-commits] r155282 - in /cfe/trunk/lib: AST/StmtPrinter.cpp Sema/SemaOverload.cpp
Nuno Lopes
nunoplopes at sapo.pt
Sat Apr 21 07:45:25 PDT 2012
Author: nlopes
Date: Sat Apr 21 09:45:25 2012
New Revision: 155282
URL: http://llvm.org/viewvc/llvm-project?rev=155282&view=rev
Log:
move some stuff to .rodata
Modified:
cfe/trunk/lib/AST/StmtPrinter.cpp
cfe/trunk/lib/Sema/SemaOverload.cpp
Modified: cfe/trunk/lib/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtPrinter.cpp?rev=155282&r1=155281&r2=155282&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtPrinter.cpp (original)
+++ cfe/trunk/lib/AST/StmtPrinter.cpp Sat Apr 21 09:45:25 2012
@@ -742,7 +742,7 @@
case StringLiteral::UTF32: OS << 'U'; break;
}
OS << '"';
- static char Hex[] = "0123456789ABCDEF";
+ static const char Hex[] = "0123456789ABCDEF";
unsigned LastSlashX = Str->getLength();
for (unsigned I = 0, N = Str->getLength(); I != N; ++I) {
Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=155282&r1=155281&r2=155282&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Sat Apr 21 09:45:25 2012
@@ -6426,7 +6426,7 @@
enum PromotedType {
Flt, Dbl, LDbl, SI, SL, SLL, UI, UL, ULL, Dep=-1
};
- static PromotedType ConversionsTable[LastPromotedArithmeticType]
+ static const PromotedType ConversionsTable[LastPromotedArithmeticType]
[LastPromotedArithmeticType] = {
/* Flt*/ { Flt, Dbl, LDbl, Flt, Flt, Flt, Flt, Flt, Flt },
/* Dbl*/ { Dbl, Dbl, LDbl, Dbl, Dbl, Dbl, Dbl, Dbl, Dbl },
More information about the cfe-commits
mailing list