Skip to content

Commit d19e6bd

Browse files
committed
add test
1 parent 8b6a35d commit d19e6bd

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

llvm/lib/ExecutionEngine/JITLink/XCOFFLinkGraphBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ Error XCOFFLinkGraphBuilder::processCsectsAndSymbols() {
313313
bool External = Flags & object::SymbolRef::SF_Undefined;
314314
bool Weak = Flags & object::SymbolRef::SF_Weak;
315315
bool Hidden = Flags & object::SymbolRef::SF_Hidden;
316-
bool Exported = Flags & object::SymbolRef::SF_Exported;
317-
bool Absolute = Flags & object::SymbolRef::SF_Absolute;
318316
bool Global = Flags & object::SymbolRef::SF_Global;
317+
// bool Exported = Flags & object::SymbolRef::SF_Exported;
318+
// bool Absolute = Flags & object::SymbolRef::SF_Absolute;
319319

320320
auto SymbolIndex = Obj.getSymbolIndex(Symbol.getEntryAddress());
321321

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// AIX's support for llvm-mc does not have enough support for directives like .csect
2+
// so we can't use the tool. llvm-jitlink -check is not available as it requries
3+
// implementation of registerXCOFFGraphInfo. Will revisit this testcase once support
4+
// is more complete.
5+
6+
// REQUIRES: target=powerpc64-ibm-aix{{.*}}
7+
8+
// RUN: rm -rf %t && mkdir -p %t
9+
// RUN: clang --target=powerpc64-ibm-aix -c -O3 -fPIC -o %t/xcoff_ppc64.o %s
10+
// RUN: llvm-jitlink -triple=powerpc64-ibm-aix %t/xcoff_ppc64.o
11+
12+
int main(void) { return 0; }

0 commit comments

Comments
 (0)