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

Unified Diff: src/IceTargetLowering.cpp

Issue 874353006: Write out global initializers and data rel directly to ELF file. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: tweak comment Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index 27a2d6031b352ce82bf0ee0a40e8f3902543c4a1..8b7c2577875c16b8b5e454191a6ee5e261d85968 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -252,24 +252,24 @@ void TargetLowering::regAlloc(RegAllocKind Kind) {
LinearScan.scan(RegMask, RandomizeRegisterAllocation);
}
-TargetGlobalLowering *TargetGlobalLowering::createLowering(GlobalContext *Ctx) {
+TargetDataLowering *TargetDataLowering::createLowering(GlobalContext *Ctx) {
// These statements can be #ifdef'd to specialize the code generator
// to a subset of the available targets. TODO: use CRTP.
TargetArch Target = Ctx->getTargetArch();
if (Target == Target_X8632)
- return TargetGlobalX8632::create(Ctx);
+ return TargetDataX8632::create(Ctx);
#if 0
if (Target == Target_X8664)
- return TargetGlobalX8664::create(Ctx);
+ return TargetDataX8664::create(Ctx);
if (Target == Target_ARM32)
- return TargetGlobalARM32::create(Ctx);
+ return TargetDataARM32::create(Ctx);
if (Target == Target_ARM64)
- return TargetGlobalARM64::create(Ctx);
+ return TargetDataARM64::create(Ctx);
#endif
llvm_unreachable("Unsupported target");
return nullptr;
}
-TargetGlobalLowering::~TargetGlobalLowering() {}
+TargetDataLowering::~TargetDataLowering() {}
} // end of namespace Ice

Powered by Google App Engine
This is Rietveld 408576698