diff options
| author | 2012-01-23 16:57:47 -0800 | |
|---|---|---|
| committer | 2012-01-23 17:26:10 -0800 | |
| commit | 11d1b0c31ddd710d26068da8e0e4621002205b4b (patch) | |
| tree | 8d9c9c0dd5741214466775b86069032d609fd91c /src/compiler/codegen/arm/ArchUtility.cc | |
| parent | bbdb1437f55948e5395b4dcb306e25605539a444 (diff) | |
Reduce namespace pollution.
This leaves us with just the mspace stuff and three libdex functions to clean
up. We deliberately expose the JII API, and I don't think there's anything we
can really do about the art_..._from_code stuff (and at least that starts with
"art_").
Change-Id: I77e58e8330cd2afeb496642302dfe3311e68091a
Diffstat (limited to 'src/compiler/codegen/arm/ArchUtility.cc')
| -rw-r--r-- | src/compiler/codegen/arm/ArchUtility.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/compiler/codegen/arm/ArchUtility.cc b/src/compiler/codegen/arm/ArchUtility.cc index 5e8fa20435..c9a30fd3ae 100644 --- a/src/compiler/codegen/arm/ArchUtility.cc +++ b/src/compiler/codegen/arm/ArchUtility.cc @@ -20,6 +20,8 @@ #include <string> +namespace art { + static const char* coreRegNames[16] = { "r0", "r1", @@ -309,7 +311,7 @@ void oatDumpLIRInsn(CompilationUnit* cUnit, LIR* arg, unsigned char* baseAddr) switch(lir->opcode) { case kArmPseudoMethodEntry: LOG(INFO) << "-------- method entry " << - art::PrettyMethod(cUnit->method_idx, *cUnit->dex_file); + PrettyMethod(cUnit->method_idx, *cUnit->dex_file); break; case kArmPseudoMethodExit: LOG(INFO) << "-------- Method_Exit"; @@ -413,7 +415,7 @@ void oatCodegenDump(CompilationUnit* cUnit) { LOG(INFO) << "/*"; LOG(INFO) << "Dumping LIR insns for " - << art::PrettyMethod(cUnit->method_idx, *cUnit->dex_file); + << PrettyMethod(cUnit->method_idx, *cUnit->dex_file); LIR* lirInsn; ArmLIR* armLIR; int insnsSize = cUnit->insnsSize; @@ -447,7 +449,7 @@ void oatCodegenDump(CompilationUnit* cUnit) armLIR->generic.offset, armLIR->generic.offset, armLIR->operands[0]); } - const art::DexFile::MethodId& method_id = + const DexFile::MethodId& method_id = cUnit->dex_file->GetMethodId(cUnit->method_idx); std::string signature(cUnit->dex_file->GetMethodSignature(method_id)); std::string name(cUnit->dex_file->GetMethodName(method_id)); @@ -467,3 +469,5 @@ void oatCodegenDump(CompilationUnit* cUnit) LOG(INFO) <<" };\n\n"; } } + +} // namespace art |