aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bytecode/Reader
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-04 20:14:59 +0000
committerChris Lattner <sabre@nondot.org>2003-10-04 20:14:59 +0000
commit00413e3d63c99ceed5d162ef650ad74c0db4e5d8 (patch)
tree8874b00022ef7e0fc372c2974da5548eed3bd641 /lib/Bytecode/Reader
parent9e460f23bb00c8b107ea6ef3a932a33e115d3dce (diff)
downloadexternal_llvm-00413e3d63c99ceed5d162ef650ad74c0db4e5d8.zip
external_llvm-00413e3d63c99ceed5d162ef650ad74c0db4e5d8.tar.gz
external_llvm-00413e3d63c99ceed5d162ef650ad74c0db4e5d8.tar.bz2
Rename AbstractModuleProvider -> ModuleProvider, to match the header file name,
and because, while the class used by the interface is abstract, the actual concept is not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader')
-rw-r--r--lib/Bytecode/Reader/ReaderInternals.h2
-rw-r--r--lib/Bytecode/Reader/ReaderWrappers.cpp10
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h
index 5ce7686..f08cedf 100644
--- a/lib/Bytecode/Reader/ReaderInternals.h
+++ b/lib/Bytecode/Reader/ReaderInternals.h
@@ -43,7 +43,7 @@ struct LazyFunctionInfo {
unsigned FunctionSlot;
};
-class BytecodeParser : public AbstractModuleProvider {
+class BytecodeParser : public ModuleProvider {
BytecodeParser(const BytecodeParser &); // DO NOT IMPLEMENT
void operator=(const BytecodeParser &); // DO NOT IMPLEMENT
public:
diff --git a/lib/Bytecode/Reader/ReaderWrappers.cpp b/lib/Bytecode/Reader/ReaderWrappers.cpp
index a936c0f..68f2101 100644
--- a/lib/Bytecode/Reader/ReaderWrappers.cpp
+++ b/lib/Bytecode/Reader/ReaderWrappers.cpp
@@ -156,7 +156,7 @@ BytecodeStdinReader::BytecodeStdinReader() {
/// getBytecodeBufferModuleProvider - lazy function-at-a-time loading from a
/// buffer
-AbstractModuleProvider*
+ModuleProvider*
getBytecodeBufferModuleProvider(const unsigned char *Buffer, unsigned Length,
const std::string &ModuleID) {
return new BytecodeBufferReader(Buffer, Length, ModuleID);
@@ -167,7 +167,7 @@ getBytecodeBufferModuleProvider(const unsigned char *Buffer, unsigned Length,
Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned Length,
const std::string &ModuleID, std::string *ErrorStr){
try {
- std::auto_ptr<AbstractModuleProvider>
+ std::auto_ptr<ModuleProvider>
AMP(getBytecodeBufferModuleProvider(Buffer, Length, ModuleID));
return AMP->releaseModule();
} catch (std::string &err) {
@@ -178,8 +178,7 @@ Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned Length,
/// getBytecodeModuleProvider - lazy function-at-a-time loading from a file
///
-AbstractModuleProvider*
-getBytecodeModuleProvider(const std::string &Filename) {
+ModuleProvider *getBytecodeModuleProvider(const std::string &Filename) {
if (Filename != std::string("-")) // Read from a file...
return new BytecodeFileReader(Filename);
else // Read from stdin
@@ -190,8 +189,7 @@ getBytecodeModuleProvider(const std::string &Filename) {
///
Module *ParseBytecodeFile(const std::string &Filename, std::string *ErrorStr) {
try {
- std::auto_ptr<AbstractModuleProvider>
- AMP(getBytecodeModuleProvider(Filename));
+ std::auto_ptr<ModuleProvider> AMP(getBytecodeModuleProvider(Filename));
return AMP->releaseModule();
} catch (std::string &err) {
if (ErrorStr) *ErrorStr = err;