diff options
| author | 2011-12-01 17:31:10 -0800 | |
|---|---|---|
| committer | 2011-12-01 17:31:10 -0800 | |
| commit | c1f143de3d0370a17a4561eb83bf10a5d7908aa3 (patch) | |
| tree | a4839595b944473d3bd2c06e83dcb276a460de2f /src/compiler/Frontend.cc | |
| parent | c5b734a27a64c81590015dd12a7901c396818a99 (diff) | |
Remove some lint.
Change-Id: Ieecd7c10e62bce27e2db38f96d5df9782ef0cff6
Diffstat (limited to 'src/compiler/Frontend.cc')
| -rw-r--r-- | src/compiler/Frontend.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc index 57d4616d84..89f63bec04 100644 --- a/src/compiler/Frontend.cc +++ b/src/compiler/Frontend.cc @@ -74,7 +74,7 @@ STATIC inline int parseInsn(const u2* codePtr, DecodedInstruction* decInsn, dexDecodeInstruction(codePtr, decInsn); if (printMe) { - char *decodedString = oatGetDalvikDisassembly(decInsn, NULL); + char* decodedString = oatGetDalvikDisassembly(decInsn, NULL); LOG(INFO) << codePtr << ": 0x" << std::hex << (int)opcode << " " << decodedString; } @@ -218,7 +218,7 @@ void oatDumpCFG(CompilationUnit* cUnit, const char* dirPrefix) std::string name = art::PrettyMethod(cUnit->method_idx, *cUnit->dex_file); char startOffset[80]; sprintf(startOffset, "_%x", cUnit->entryBlock->fallThrough->startOffset); - char* fileName = (char *) oatNew( + char* fileName = (char*) oatNew( strlen(dirPrefix) + name.length() + strlen(".dot") + 1, true); |