diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-29 12:40:31 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-29 12:40:31 +0000 |
commit | cf48cf23de9207e4000df91aadc0beaa0989e33d (patch) | |
tree | 422e2b36c02d0c68da9bded48e086b254cc8f060 /include | |
parent | c63dce3c59ac24b2656e06f7017cd4dce4bf733c (diff) | |
download | external_llvm-cf48cf23de9207e4000df91aadc0beaa0989e33d.zip external_llvm-cf48cf23de9207e4000df91aadc0beaa0989e33d.tar.gz external_llvm-cf48cf23de9207e4000df91aadc0beaa0989e33d.tar.bz2 |
Add support for the 's' operation to llvm-ar.
If no other operation is specified, 's' becomes an operation instead of an
modifier. The s operation just creates a symbol table. It is the same as
running ranlib.
We assume the archive was created by a sane ar (like llvm-ar or gnu ar) and
if the symbol table is present, then it is current. We use that to optimize
the most common case: a broken build system that thinks it has to run ranlib.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/Archive.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Object/Archive.h b/include/llvm/Object/Archive.h index c0513a7..1cba519 100644 --- a/include/llvm/Object/Archive.h +++ b/include/llvm/Object/Archive.h @@ -188,6 +188,8 @@ public: // check if a symbol is in the archive child_iterator findSym(StringRef name) const; + bool hasSymbolTable() const; + private: child_iterator SymbolTable; child_iterator StringTable; |