summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-29 12:40:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-29 12:40:31 +0000
commitb6b5f52ee87159a061ac87178a568e0b840a4f7a (patch)
treeb3dbb5ec9d29f78be073b6b82a003c48bb5be4a3 /llvm/include
parent2c9c89b21d272eafb19f993c9e7c055d87a4e7fb (diff)
downloadbcm5719-llvm-b6b5f52ee87159a061ac87178a568e0b840a4f7a.tar.gz
bcm5719-llvm-b6b5f52ee87159a061ac87178a568e0b840a4f7a.zip
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. llvm-svn: 187353
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Object/Archive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Object/Archive.h b/llvm/include/llvm/Object/Archive.h
index c0513a7c20f..1cba51954ec 100644
--- a/llvm/include/llvm/Object/Archive.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud