Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: src/IceTargetLoweringARM32.cpp

Issue 1177873003: Removes const qualification for two methods in TargetDataLowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringARM32.h ('k') | src/IceTargetLoweringMIPS32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file implements the TargetLoweringARM32 class, which consists almost 10 // This file implements the TargetLoweringARM32 class, which consists almost
(...skipping 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 2193
2194 TargetDataARM32::TargetDataARM32(GlobalContext *Ctx) 2194 TargetDataARM32::TargetDataARM32(GlobalContext *Ctx)
2195 : TargetDataLowering(Ctx) {} 2195 : TargetDataLowering(Ctx) {}
2196 2196
2197 void TargetDataARM32::lowerGlobal(const VariableDeclaration &Var) const { 2197 void TargetDataARM32::lowerGlobal(const VariableDeclaration &Var) const {
2198 (void)Var; 2198 (void)Var;
2199 UnimplementedError(Ctx->getFlags()); 2199 UnimplementedError(Ctx->getFlags());
2200 } 2200 }
2201 2201
2202 void TargetDataARM32::lowerGlobals( 2202 void TargetDataARM32::lowerGlobals(
2203 std::unique_ptr<VariableDeclarationList> Vars) const { 2203 std::unique_ptr<VariableDeclarationList> Vars) {
2204 switch (Ctx->getFlags().getOutFileType()) { 2204 switch (Ctx->getFlags().getOutFileType()) {
2205 case FT_Elf: { 2205 case FT_Elf: {
2206 ELFObjectWriter *Writer = Ctx->getObjectWriter(); 2206 ELFObjectWriter *Writer = Ctx->getObjectWriter();
2207 Writer->writeDataSection(*Vars, llvm::ELF::R_ARM_ABS32); 2207 Writer->writeDataSection(*Vars, llvm::ELF::R_ARM_ABS32);
2208 } break; 2208 } break;
2209 case FT_Asm: 2209 case FT_Asm:
2210 case FT_Iasm: { 2210 case FT_Iasm: {
2211 const IceString &TranslateOnly = Ctx->getFlags().getTranslateOnly(); 2211 const IceString &TranslateOnly = Ctx->getFlags().getTranslateOnly();
2212 OstreamLocker L(Ctx); 2212 OstreamLocker L(Ctx);
2213 for (const VariableDeclaration *Var : *Vars) { 2213 for (const VariableDeclaration *Var : *Vars) {
2214 if (GlobalContext::matchSymbolName(Var->getName(), TranslateOnly)) { 2214 if (GlobalContext::matchSymbolName(Var->getName(), TranslateOnly)) {
2215 lowerGlobal(*Var); 2215 lowerGlobal(*Var);
2216 } 2216 }
2217 } 2217 }
2218 } break; 2218 } break;
2219 } 2219 }
2220 } 2220 }
2221 2221
2222 void TargetDataARM32::lowerConstants() const { 2222 void TargetDataARM32::lowerConstants() {
2223 if (Ctx->getFlags().getDisableTranslation()) 2223 if (Ctx->getFlags().getDisableTranslation())
2224 return; 2224 return;
2225 UnimplementedError(Ctx->getFlags()); 2225 UnimplementedError(Ctx->getFlags());
2226 } 2226 }
2227 2227
2228 TargetHeaderARM32::TargetHeaderARM32(GlobalContext *Ctx) 2228 TargetHeaderARM32::TargetHeaderARM32(GlobalContext *Ctx)
2229 : TargetHeaderLowering(Ctx) {} 2229 : TargetHeaderLowering(Ctx) {}
2230 2230
2231 void TargetHeaderARM32::lower() { 2231 void TargetHeaderARM32::lower() {
2232 OstreamLocker L(Ctx); 2232 OstreamLocker L(Ctx);
(...skipping 25 matching lines...) Expand all
2258 << ".eabi_attribute 36, 1 @ Tag_FP_HP_extension\n" 2258 << ".eabi_attribute 36, 1 @ Tag_FP_HP_extension\n"
2259 << ".eabi_attribute 38, 1 @ Tag_ABI_FP_16bit_format\n" 2259 << ".eabi_attribute 38, 1 @ Tag_ABI_FP_16bit_format\n"
2260 << ".eabi_attribute 42, 1 @ Tag_MPextension_use\n" 2260 << ".eabi_attribute 42, 1 @ Tag_MPextension_use\n"
2261 << ".eabi_attribute 68, 1 @ Tag_Virtualization_use\n"; 2261 << ".eabi_attribute 68, 1 @ Tag_Virtualization_use\n";
2262 // Technically R9 is used for TLS with Sandboxing, and we reserve it. 2262 // Technically R9 is used for TLS with Sandboxing, and we reserve it.
2263 // However, for compatibility with current NaCl LLVM, don't claim that. 2263 // However, for compatibility with current NaCl LLVM, don't claim that.
2264 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; 2264 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n";
2265 } 2265 }
2266 2266
2267 } // end of namespace Ice 2267 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.h ('k') | src/IceTargetLoweringMIPS32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698