diff options
author | Gabor Greif <ggreif@gmail.com> | 2007-07-05 17:07:56 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2007-07-05 17:07:56 +0000 |
commit | a99be51bf5cdac1438069d4b01766c47704961c8 (patch) | |
tree | c743819ee5ce71fc3aa76ed445ca89201b4daf4a /lib/Archive/Archive.cpp | |
parent | f8ad9552215503f7573b5049567ed59c37cc9636 (diff) | |
download | external_llvm-a99be51bf5cdac1438069d4b01766c47704961c8.zip external_llvm-a99be51bf5cdac1438069d4b01766c47704961c8.tar.gz external_llvm-a99be51bf5cdac1438069d4b01766c47704961c8.tar.bz2 |
Here is the bulk of the sanitizing.
Almost all occurrences of "bytecode" in the sources have been eliminated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive/Archive.cpp')
-rw-r--r-- | lib/Archive/Archive.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Archive/Archive.cpp b/lib/Archive/Archive.cpp index 6fabc5c..d0c6409 100644 --- a/lib/Archive/Archive.cpp +++ b/lib/Archive/Archive.cpp @@ -210,10 +210,10 @@ static void getSymbols(Module*M, std::vector<std::string>& symbols) { symbols.push_back(FI->getName()); } -// Get just the externally visible defined symbols from the bytecode -bool llvm::GetBytecodeSymbols(const sys::Path& fName, - std::vector<std::string>& symbols, - std::string* ErrMsg) { +// Get just the externally visible defined symbols from the bitcode +bool llvm::GetBitcodeSymbols(const sys::Path& fName, + std::vector<std::string>& symbols, + std::string* ErrMsg) { std::auto_ptr<MemoryBuffer> Buffer( MemoryBuffer::getFileOrSTDIN(&fName.toString()[0], fName.toString().size())); @@ -242,10 +242,10 @@ bool llvm::GetBytecodeSymbols(const sys::Path& fName, } ModuleProvider* -llvm::GetBytecodeSymbols(const unsigned char *BufPtr, unsigned Length, - const std::string& ModuleID, - std::vector<std::string>& symbols, - std::string* ErrMsg) { +llvm::GetBitcodeSymbols(const unsigned char *BufPtr, unsigned Length, + const std::string& ModuleID, + std::vector<std::string>& symbols, + std::string* ErrMsg) { // Get the module provider MemoryBuffer *Buffer =MemoryBuffer::getNewMemBuffer(Length, ModuleID.c_str()); memcpy((char*)Buffer->getBufferStart(), BufPtr, Length); |