Skip to content

Commit 4acaf4e

Browse files
committed
Fix code format
1 parent d5e19a5 commit 4acaf4e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/LibraryResolver.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,10 @@ class LibraryManager {
9696
mutable std::shared_mutex mutex;
9797
};
9898

99-
/**
100-
* @brief A read-only view of libraries filtered by state and kind.
101-
*
102-
* Lets you loop over only the libraries in a map that match a given State
103-
* and PathType.
104-
*/
99+
/// A read-only view of libraries filtered by state and kind.
100+
///
101+
/// Lets you loop over only the libraries in a map that match a given State
102+
/// and PathType.
105103
class FilteredView {
106104
public:
107105
using Map = StringMap<std::shared_ptr<LibraryInfo>>;

llvm/lib/ExecutionEngine/Orc/TargetProcess/LibraryScanner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ bool DylibPathValidator::isSharedLibrary(StringRef Path) {
233233
if (MagicCode == file_magic::archive)
234234
return false;
235235

236-
// Universal binary handling.
236+
// Universal binary handling.
237237
#if defined(__APPLE__)
238238
if (MagicCode == file_magic::macho_universal_binary) {
239239
ObjectFileLoader ObjLoader(Path);
@@ -430,7 +430,7 @@ mode_t PathResolver::lstatCached(StringRef path) {
430430
return *cache;
431431

432432
// Not cached: perform lstat and store
433-
struct stat buf {};
433+
struct stat buf{};
434434
mode_t st_mode = (lstat(path.str().c_str(), &buf) == -1) ? 0 : buf.st_mode;
435435

436436
m_cache->insert_lstat(path, st_mode);

0 commit comments

Comments
 (0)