aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
diff options
context:
space:
mode:
authorMaksim Panchenko <maks@fb.com>2021-12-14 16:52:51 -0800
committerMaksim Panchenko <maks@fb.com>2021-12-14 16:52:51 -0800
commit40c2e0fafe5675306f4ad43910bf6e2fd2025ff3 (patch)
tree6836c91cc86d98569f486373381beeab138e2319 /bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
parent5fc8adb529d667131c6bcb413cf0621f5b5d20c4 (diff)
downloadllvm-40c2e0fafe5675306f4ad43910bf6e2fd2025ff3.zip
llvm-40c2e0fafe5675306f4ad43910bf6e2fd2025ff3.tar.gz
llvm-40c2e0fafe5675306f4ad43910bf6e2fd2025ff3.tar.bz2
[BOLT][NFC] Reformat with clang-format
Summary: Selectively apply clang-format to BOLT code base. (cherry picked from FBD33119052)
Diffstat (limited to 'bolt/lib/RuntimeLibs/RuntimeLibrary.cpp')
-rw-r--r--bolt/lib/RuntimeLibs/RuntimeLibrary.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp b/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
index cf811ed..d9a4640 100644
--- a/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
+++ b/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
@@ -15,7 +15,6 @@
#include "llvm/Object/Archive.h"
#include "llvm/Support/Path.h"
-#undef DEBUG_TYPE
#define DEBUG_TYPE "bolt-rtlib"
using namespace llvm;
@@ -31,8 +30,7 @@ std::string RuntimeLibrary::getLibPath(StringRef ToolPath,
if (!llvm::sys::fs::exists(LibPath)) {
// In some cases we install bolt binary into one level deeper in bin/,
// we need to go back one more level to find lib directory.
- LibPath =
- llvm::sys::path::parent_path(llvm::sys::path::parent_path(Dir));
+ LibPath = llvm::sys::path::parent_path(llvm::sys::path::parent_path(Dir));
llvm::sys::path::append(LibPath, "lib");
}
llvm::sys::path::append(LibPath, LibFileName);
@@ -63,8 +61,8 @@ void RuntimeLibrary::loadLibrary(StringRef LibPath, RuntimeDyld &RTDyld) {
} else if (Magic == file_magic::elf_relocatable ||
Magic == file_magic::elf_shared_object) {
std::unique_ptr<object::ObjectFile> Obj = cantFail(
- object::ObjectFile::createObjectFile(B.get()->getMemBufferRef()),
- "error creating in-memory object");
+ object::ObjectFile::createObjectFile(B.get()->getMemBufferRef()),
+ "error creating in-memory object");
RTDyld.loadObject(*Obj);
} else {
errs() << "BOLT-ERROR: unrecognized library format: " << LibPath << "\n";