summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/CodegenFactory.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2012-06-06 16:45:18 -0700
committer buzbee <buzbee@google.com> 2012-06-06 16:45:18 -0700
commit408ad16bf7c460bf34ca55ff6351b79841a6fcd5 (patch)
tree7336813d0fc92aa3ddd9b372cb1d260dd2386b9f /src/compiler/codegen/CodegenFactory.cc
parent95b2619ca83752eb041020276e57af01052d0f94 (diff)
Restructure to reduce MIR references
This CL eliminates most of the MIR references in the lower-level code generator. This allows a higher level of code sharing with the MIR->LIR and GreenlandIR->LIR lowering passes. The invoke, launchpads and new array support will need some more extensive refactoring (future CL). Change-Id: I75f249268c8ac18da1dd9180ff855d5176d6c4fe
Diffstat (limited to 'src/compiler/codegen/CodegenFactory.cc')
-rw-r--r--src/compiler/codegen/CodegenFactory.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/codegen/CodegenFactory.cc b/src/compiler/codegen/CodegenFactory.cc
index 3a7cb82a02..71b557c0d8 100644
--- a/src/compiler/codegen/CodegenFactory.cc
+++ b/src/compiler/codegen/CodegenFactory.cc
@@ -44,7 +44,7 @@ LIR* loadConstant(CompilationUnit* cUnit, int rDest, int value)
LIR* loadWordDisp(CompilationUnit* cUnit, int rBase, int displacement,
int rDest)
{
- return loadBaseDisp(cUnit, NULL, rBase, displacement, rDest, kWord,
+ return loadBaseDisp(cUnit, rBase, displacement, rDest, kWord,
INVALID_SREG);
}
@@ -97,7 +97,7 @@ void loadValueDirectWide(CompilationUnit* cUnit, RegLocation rlSrc, int regLo,
} else {
DCHECK((rlSrc.location == kLocDalvikFrame) ||
(rlSrc.location == kLocCompilerTemp));
- loadBaseDispWide(cUnit, NULL, rSP, oatSRegOffset(cUnit, rlSrc.sRegLow),
+ loadBaseDispWide(cUnit, rSP, oatSRegOffset(cUnit, rlSrc.sRegLow),
regLo, regHi, INVALID_SREG);
}
}