]> granicus.if.org Git - clang/commitdiff
move some stuff to .rodata
authorNuno Lopes <nunoplopes@sapo.pt>
Sat, 21 Apr 2012 14:45:25 +0000 (14:45 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Sat, 21 Apr 2012 14:45:25 +0000 (14:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155282 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/StmtPrinter.cpp
lib/Sema/SemaOverload.cpp

index af8e5c792a450b8590e1de33995961e065fb3f7d..7309e7c889a2d52fc7878a56630024ef4ac75fcd 100644 (file)
@@ -742,7 +742,7 @@ void StmtPrinter::VisitStringLiteral(StringLiteral *Str) {
   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) {
index 50230f068dd585029e18a3bdf1d513eb42f9aae2..ea7e0e8a80ca2c1e44175d5f9956415712f1bae6 100644 (file)
@@ -6426,7 +6426,7 @@ class BuiltinOperatorOverloadBuilder {
     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 },