Put all LLVM code into the llvm namespace, as per bug 109.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke
2003-11-11 22:41:34 +00:00
parent 0d723acf15
commit d0fde30ce8
558 changed files with 2494 additions and 264 deletions

View File

@ -15,6 +15,8 @@
#ifndef LLVM_BYTECODE_FORMAT_H
#define LLVM_BYTECODE_FORMAT_H
namespace llvm {
class BytecodeFormat { // Throw the constants into a poorman's namespace...
BytecodeFormat(); // do not implement
public:
@ -38,4 +40,7 @@ public:
BasicBlock = 0x31, // May contain many basic blocks
};
};
} // End llvm namespace
#endif

View File

@ -23,6 +23,8 @@
#include <string>
#include <deque>
namespace llvm {
//===----------------------------------------------------------------------===//
// Reading Primitives
//===----------------------------------------------------------------------===//
@ -275,4 +277,6 @@ static inline void output_data(void *Ptr, void *End,
if (Align) align32(Out);
}
} // End llvm namespace
#endif

View File

@ -23,6 +23,8 @@
#include <string>
#include <vector>
namespace llvm {
/// getBytecodeModuleProvider - lazy function-at-a-time loading from a file
///
ModuleProvider *getBytecodeModuleProvider(const std::string &Filename);
@ -53,4 +55,6 @@ bool ReadArchiveFile(const std::string &Filename,
std::vector<Module*> &Objects,
std::string *ErrorStr = 0);
} // End llvm namespace
#endif

View File

@ -19,6 +19,8 @@
#include "llvm/Bytecode/Writer.h"
#include <iostream>
namespace llvm {
class WriteBytecodePass : public Pass {
std::ostream *Out; // ostream to print on
bool DeleteStream;
@ -38,4 +40,6 @@ public:
}
};
} // End llvm namespace
#endif

View File

@ -26,7 +26,11 @@
#include <iosfwd>
namespace llvm {
class Module;
void WriteBytecodeToFile(const Module *C, std::ostream &Out);
} // End llvm namespace
#endif