[llvm-commits] CVS: llvm/include/llvm/Bytecode/Format.h Primitives.h Reader.h WriteBytecodePass.h Writer.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:46:17 PST 2003
Changes in directory llvm/include/llvm/Bytecode:
Format.h updated: 1.5 -> 1.6
Primitives.h updated: 1.13 -> 1.14
Reader.h updated: 1.15 -> 1.16
WriteBytecodePass.h updated: 1.9 -> 1.10
Writer.h updated: 1.4 -> 1.5
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+21 -0)
Index: llvm/include/llvm/Bytecode/Format.h
diff -u llvm/include/llvm/Bytecode/Format.h:1.5 llvm/include/llvm/Bytecode/Format.h:1.6
--- llvm/include/llvm/Bytecode/Format.h:1.5 Mon Oct 20 15:19:21 2003
+++ llvm/include/llvm/Bytecode/Format.h Tue Nov 11 16:41:31 2003
@@ -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 @@
BasicBlock = 0x31, // May contain many basic blocks
};
};
+
+} // End llvm namespace
+
#endif
Index: llvm/include/llvm/Bytecode/Primitives.h
diff -u llvm/include/llvm/Bytecode/Primitives.h:1.13 llvm/include/llvm/Bytecode/Primitives.h:1.14
--- llvm/include/llvm/Bytecode/Primitives.h:1.13 Mon Oct 20 15:19:21 2003
+++ llvm/include/llvm/Bytecode/Primitives.h Tue Nov 11 16:41:31 2003
@@ -23,6 +23,8 @@
#include <string>
#include <deque>
+namespace llvm {
+
//===----------------------------------------------------------------------===//
// Reading Primitives
//===----------------------------------------------------------------------===//
@@ -274,5 +276,7 @@
if (Align) align32(Out);
}
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Bytecode/Reader.h
diff -u llvm/include/llvm/Bytecode/Reader.h:1.15 llvm/include/llvm/Bytecode/Reader.h:1.16
--- llvm/include/llvm/Bytecode/Reader.h:1.15 Mon Oct 20 15:19:21 2003
+++ llvm/include/llvm/Bytecode/Reader.h Tue Nov 11 16:41:31 2003
@@ -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);
@@ -52,5 +54,7 @@
bool ReadArchiveFile(const std::string &Filename,
std::vector<Module*> &Objects,
std::string *ErrorStr = 0);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h
diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.9 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.10
--- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.9 Mon Oct 20 15:19:21 2003
+++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Tue Nov 11 16:41:31 2003
@@ -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;
@@ -37,5 +39,7 @@
return false;
}
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Bytecode/Writer.h
diff -u llvm/include/llvm/Bytecode/Writer.h:1.4 llvm/include/llvm/Bytecode/Writer.h:1.5
--- llvm/include/llvm/Bytecode/Writer.h:1.4 Mon Oct 20 15:19:21 2003
+++ llvm/include/llvm/Bytecode/Writer.h Tue Nov 11 16:41:31 2003
@@ -26,7 +26,11 @@
#include <iosfwd>
+namespace llvm {
+
class Module;
void WriteBytecodeToFile(const Module *C, std::ostream &Out);
+
+} // End llvm namespace
#endif
More information about the llvm-commits
mailing list