diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-03 15:57:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-03 15:57:14 +0000 |
commit | 09a7f6016ae87e97275e18ea662ff32a120c04a4 (patch) | |
tree | 15c0547b33564af50fbed3b5ad25c6c5e7140951 /test/Object/nm-archive.test | |
parent | 40d40dd44edbac3c20a4f3305f208ab48c2c219a (diff) | |
download | external_llvm-09a7f6016ae87e97275e18ea662ff32a120c04a4.zip external_llvm-09a7f6016ae87e97275e18ea662ff32a120c04a4.tar.gz external_llvm-09a7f6016ae87e97275e18ea662ff32a120c04a4.tar.bz2 |
Add support for gnu archives with a string table and no symtab.
While there, use early returns to reduce nesting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/nm-archive.test')
-rw-r--r-- | test/Object/nm-archive.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Object/nm-archive.test b/test/Object/nm-archive.test index e35b4d4..869bea8 100644 --- a/test/Object/nm-archive.test +++ b/test/Object/nm-archive.test @@ -1,10 +1,13 @@ RUN: llvm-nm %p/Inputs/archive-test.a-coff-i386 \ RUN: | FileCheck %s -check-prefix COFF + RUN: llvm-as %p/Inputs/trivial.ll -o=%t1 RUN: rm -f %t2 RUN: llvm-ar rcs %t2 %t1 RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE +Test we don't error with an archive with no symtab. +RUN: llvm-nm %p/Inputs/archive-test.a-gnu-no-symtab COFF: trivial-object-test.coff-i386: COFF-NEXT: 00000000 d .data |