Skip to content

Commit 481bbc0

Browse files
committed
Updated to LLVM/Clang revisions 318543/318538 respectively.
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 6e55913 commit 481bbc0

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

build/Clang-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e20a5f4e97e6bde6c10d591e8466b030b717d258
1+
ffc5930a5cffb23df03565739b8820d14a19d4bf

build/LLVM-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cad1431a1e4e8f9ceb11d463682fd868897d7af6
1+
9bde5fb8f8ea44d6ef0f2edb4f54cbff7a0aee53

build/scripts/LLVM.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ function cmake(gen, conf, builddir, options)
240240
.. ' -DCLANG_TOOL_SCAN_VIEW_BUILD=false'
241241
.. ' -DLLVM_TARGETS_TO_BUILD="X86"'
242242
.. ' -DCMAKE_BUILD_TYPE=' .. conf .. ' ..'
243+
.. ' -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11'
243244
.. ' ' .. options
244245
execute_or_die(cmd)
245246
os.chdir(cwd)

src/CppParser/ELFDumper.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ ELFDumper<ELFT>::ELFDumper(const llvm::object::ELFFile<ELFT> *Obj) {
7575

7676
auto toMappedAddr = [&](uint64_t VAddr) -> const uint8_t *{
7777
const Elf_Phdr **I = std::upper_bound(
78-
LoadSegments.begin(), LoadSegments.end(), VAddr, llvm::object::compareAddr<ELFT>);
78+
LoadSegments.begin(), LoadSegments.end(), VAddr,
79+
[](uint64_t VAddr, const Elf_Phdr *Phdr)
80+
{
81+
return VAddr < Phdr->p_vaddr;
82+
});
7983
if (I == LoadSegments.begin())
8084
llvm::report_fatal_error("Virtual address is not in any segment");
8185
--I;

src/CppParser/Parser.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4184,10 +4184,15 @@ ParserResultKind Parser::ParseSharedLib(llvm::StringRef File,
41844184
NativeLib->Dependencies.push_back(lib);
41854185
}
41864186
}
4187-
for (const auto& Entry : MachOObjectFile->exports())
4187+
auto Error = llvm::Error::success();
4188+
for (const auto& Entry : MachOObjectFile->exports(Error))
41884189
{
41894190
NativeLib->Symbols.push_back(Entry.name());
41904191
}
4192+
if (Error)
4193+
{
4194+
return ParserResultKind::Error;
4195+
}
41914196
return ParserResultKind::Success;
41924197
}
41934198

0 commit comments

Comments
 (0)