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

Unified Diff: src/IceTargetLoweringX86Base.h

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 9 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
« no previous file with comments | « src/IceTargetLoweringX8664Traits.h ('k') | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX86Base.h
diff --git a/src/IceTargetLoweringX86Base.h b/src/IceTargetLoweringX86Base.h
index 0c2523f9cb97940cbdd4e459b784455a53c6878d..10144939885046f61a386b7d7ccb39b2675e9a3c 100644
--- a/src/IceTargetLoweringX86Base.h
+++ b/src/IceTargetLoweringX86Base.h
@@ -79,6 +79,7 @@ public:
~TargetX86Base() override = default;
static void staticInit(GlobalContext *Ctx);
+ static bool shouldBePooled(const Constant *C);
static FixupKind getPcRelFixup() { return PcRelFixup; }
static FixupKind getAbsFixup() { return AbsFixup; }
@@ -95,8 +96,8 @@ public:
}
Variable *getPhysicalRegister(RegNumT RegNum,
Type Ty = IceType_void) override;
- IceString getRegName(RegNumT RegNum, Type Ty) const override;
- static IceString getRegClassName(RegClass C) {
+ const char *getRegName(RegNumT RegNum, Type Ty) const override;
+ static const char *getRegClassName(RegClass C) {
auto ClassNum = static_cast<RegClassX86>(C);
assert(ClassNum < RCX86_NUM);
switch (ClassNum) {
@@ -174,9 +175,9 @@ public:
ConstantRelocatable *createGetIPForRegister(const Variable *Dest) {
assert(Dest->hasReg());
- const IceString RegName = Traits::getRegName(Dest->getRegNum());
- return llvm::cast<ConstantRelocatable>(
- Ctx->getConstantExternSym(H_getIP_prefix + RegName));
+ const std::string RegName = Traits::getRegName(Dest->getRegNum());
+ return llvm::cast<ConstantRelocatable>(Ctx->getConstantExternSym(
+ Ctx->getGlobalString(H_getIP_prefix + RegName)));
}
SizeT getMinJumpTableSize() const override { return 4; }
@@ -1097,7 +1098,7 @@ public:
}
void lowerGlobals(const VariableDeclarationList &Vars,
- const IceString &SectionSuffix) override;
+ const std::string &SectionSuffix) override;
void lowerConstants() override;
void lowerJumpTables() override;
« no previous file with comments | « src/IceTargetLoweringX8664Traits.h ('k') | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698