aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Bytecode
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
commitd0fde30ce850b78371fd1386338350591f9ff494 (patch)
tree83bb73e83f54fc8e1e474d116250ae2779562f7e /include/llvm/Bytecode
parent0d723acf15b0326e2df09ecb614b02a617f536e4 (diff)
downloadexternal_llvm-d0fde30ce850b78371fd1386338350591f9ff494.zip
external_llvm-d0fde30ce850b78371fd1386338350591f9ff494.tar.gz
external_llvm-d0fde30ce850b78371fd1386338350591f9ff494.tar.bz2
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
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r--include/llvm/Bytecode/Format.h5
-rw-r--r--include/llvm/Bytecode/Primitives.h4
-rw-r--r--include/llvm/Bytecode/Reader.h4
-rw-r--r--include/llvm/Bytecode/WriteBytecodePass.h4
-rw-r--r--include/llvm/Bytecode/Writer.h4
5 files changed, 21 insertions, 0 deletions
diff --git a/include/llvm/Bytecode/Format.h b/include/llvm/Bytecode/Format.h
index 79cf9f0..380f4df 100644
--- a/include/llvm/Bytecode/Format.h
+++ b/include/llvm/Bytecode/Format.h
@@ -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
diff --git a/include/llvm/Bytecode/Primitives.h b/include/llvm/Bytecode/Primitives.h
index d9b29c0..3973ece 100644
--- a/include/llvm/Bytecode/Primitives.h
+++ b/include/llvm/Bytecode/Primitives.h
@@ -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
diff --git a/include/llvm/Bytecode/Reader.h b/include/llvm/Bytecode/Reader.h
index 0de71002..1e9fa32 100644
--- a/include/llvm/Bytecode/Reader.h
+++ b/include/llvm/Bytecode/Reader.h
@@ -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
diff --git a/include/llvm/Bytecode/WriteBytecodePass.h b/include/llvm/Bytecode/WriteBytecodePass.h
index ba8bc71..b8863e6 100644
--- a/include/llvm/Bytecode/WriteBytecodePass.h
+++ b/include/llvm/Bytecode/WriteBytecodePass.h
@@ -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
diff --git a/include/llvm/Bytecode/Writer.h b/include/llvm/Bytecode/Writer.h
index ba82f6a..9fadddb 100644
--- a/include/llvm/Bytecode/Writer.h
+++ b/include/llvm/Bytecode/Writer.h
@@ -26,7 +26,11 @@
#include <iosfwd>
+namespace llvm {
+
class Module;
void WriteBytecodeToFile(const Module *C, std::ostream &Out);
+} // End llvm namespace
+
#endif