Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: Ic34de235eb1cd094af555d7299da643a626ca092
diff --git a/bcinfo/BitcodeTranslator.cpp b/bcinfo/BitcodeTranslator.cpp
index ae5c0c1..ba22e1f 100644
--- a/bcinfo/BitcodeTranslator.cpp
+++ b/bcinfo/BitcodeTranslator.cpp
@@ -83,14 +83,14 @@
bool BitcodeTranslator::translate() {
if (!mBitcode || !mBitcodeSize) {
- LOGE("Invalid/empty bitcode");
+ ALOGE("Invalid/empty bitcode");
return false;
}
if ((mVersion != kCurrentAPIVersion) &&
((mVersion < kMinimumAPIVersion) ||
(mVersion > kMaximumAPIVersion))) {
- LOGE("Invalid API version: %u is out of range ('%u' - '%u')", mVersion,
+ ALOGE("Invalid API version: %u is out of range ('%u' - '%u')", mVersion,
kMinimumAPIVersion, kMaximumAPIVersion);
return false;
}
@@ -119,13 +119,13 @@
} else if (mVersion >= kMinimumCompatibleVersion_LLVM_2_7) {
module = llvm_2_7::ParseBitcodeFile(MEM.get(), *mContext, &error);
} else {
- LOGE("No compatible bitcode reader for API version %d", mVersion);
+ ALOGE("No compatible bitcode reader for API version %d", mVersion);
return false;
}
if (!module) {
- LOGE("Could not parse bitcode file");
- LOGE("%s", error.c_str());
+ ALOGE("Could not parse bitcode file");
+ ALOGE("%s", error.c_str());
return false;
}
diff --git a/bcinfo/BitcodeWrapper.cpp b/bcinfo/BitcodeWrapper.cpp
index bf7e75b..c6f9c04 100644
--- a/bcinfo/BitcodeWrapper.cpp
+++ b/bcinfo/BitcodeWrapper.cpp
@@ -40,14 +40,14 @@
bool BitcodeWrapper::unwrap() {
if (!mBitcode || !mBitcodeSize) {
- LOGE("Invalid/empty bitcode");
+ ALOGE("Invalid/empty bitcode");
return false;
}
if (llvm::isBitcodeWrapper((const unsigned char*) mBitcode,
(const unsigned char*) mBitcodeEnd)) {
if (mBitcodeSize < sizeof(mBCHeader)) {
- LOGE("Invalid bitcode size");
+ ALOGE("Invalid bitcode size");
return false;
}
@@ -59,7 +59,7 @@
mFileType = BC_RAW;
return true;
} else {
- LOGE("Not bitcode");
+ ALOGE("Not bitcode");
mFileType = BC_NOT_BC;
return false;
}
diff --git a/bcinfo/MetadataExtractor.cpp b/bcinfo/MetadataExtractor.cpp
index 763b5f4..477b7f2 100644
--- a/bcinfo/MetadataExtractor.cpp
+++ b/bcinfo/MetadataExtractor.cpp
@@ -110,7 +110,7 @@
static_cast<llvm::MDString*>(SlotMDS)->getString();
uint32_t USlot = 0;
if (Slot.getAsInteger(10, USlot)) {
- LOGE("Non-integer object slot value '%s'", Slot.str().c_str());
+ ALOGE("Non-integer object slot value '%s'", Slot.str().c_str());
return false;
}
TmpSlotList[i] = USlot;
@@ -196,7 +196,7 @@
static_cast<llvm::MDString*>(SigVal)->getString();
uint32_t Signature = 0;
if (SigString.getAsInteger(10, Signature)) {
- LOGE("Non-integer signature value '%s'", SigString.str().c_str());
+ ALOGE("Non-integer signature value '%s'", SigString.str().c_str());
return false;
}
TmpSigList[i] = Signature;
@@ -213,7 +213,7 @@
bool MetadataExtractor::extract() {
if (!mBitcode || !mBitcodeSize) {
- LOGE("Invalid/empty bitcode");
+ ALOGE("Invalid/empty bitcode");
return false;
}
@@ -226,8 +226,8 @@
// Module ownership is handled by the context, so we don't need to free it.
llvm::Module *module = llvm::ParseBitcodeFile(MEM.get(), *mContext, &error);
if (!module) {
- LOGE("Could not parse bitcode file");
- LOGE("%s", error.c_str());
+ ALOGE("Could not parse bitcode file");
+ ALOGE("%s", error.c_str());
return false;
}
@@ -251,14 +251,14 @@
}
if (!populateForEachMetadata(ExportForEachMetadata)) {
- LOGE("Could not populate ForEach signature metadata");
+ ALOGE("Could not populate ForEach signature metadata");
return false;
}
populatePragmaMetadata(PragmaMetadata);
if (!populateObjectSlotMetadata(ObjectSlotMetadata)) {
- LOGE("Could not populate object slot metadata");
+ ALOGE("Could not populate object slot metadata");
return false;
}