summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
commit960707c335b85fa0df0bff6400fd4e5f19ac0df4 (patch)
treefcd6bd0a802eff2ba6d9bcfef369241d5b79d06a /llvm/tools/llvm-ar
parentda3f675edd0b0ffa480c1bec97a2a701d31e4ca8 (diff)
downloadbcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.tar.gz
bcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.zip
Put all LLVM code into the llvm namespace, as per bug 109.
llvm-svn: 9903
Diffstat (limited to 'llvm/tools/llvm-ar')
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 879d847630f..e9a4dbf0951 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -25,6 +25,8 @@
#include <unistd.h>
#include <sys/mman.h>
+using namespace llvm;
+
using std::string;
using std::vector;
using std::cout;
@@ -69,7 +71,7 @@ namespace {
//Option to generate symbol table or not
//running llvm-ar -s is the same as ranlib
-cl::opt<bool> SymbolTable ("s", cl::desc("Generate an archive symbol table"));
+cl::opt<bool> SymbolTableOption ("s", cl::desc("Generate an archive symbol table"));
//Archive name
cl::opt<string> Archive (cl::Positional, cl::desc("<archive file>"),
@@ -335,7 +337,7 @@ void CreateArchive() {
ArchiveFile << ARMAG;
//If the '-s' option was specified, generate symbol table.
- if(SymbolTable) {
+ if(SymbolTableOption) {
cout << "Symbol Table Start: " << ArchiveFile.tellp() << "\n";
if(!WriteSymbolTable(ArchiveFile)) {
std::cerr << "Error creating symbol table. Exiting program.";
OpenPOWER on IntegriCloud