summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h b/llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h
index 179a4d49582..42be1149e97 100644
--- a/llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h
+++ b/llvm/lib/CodeGen/AsmPrinter/ByteStreamer.h
@@ -19,8 +19,6 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/MC/MCStreamer.h"
-#include "llvm/Support/LEB128.h"
-#include <string>
namespace llvm {
class ByteStreamer {
@@ -68,33 +66,6 @@ class HashingByteStreamer : public ByteStreamer {
Hash.addULEB128(DWord);
}
};
-
-class BufferByteStreamer : public ByteStreamer {
-private:
- SmallVectorImpl<char> &Buffer;
- // FIXME: This is actually only needed for textual asm output.
- SmallVectorImpl<std::string> &Comments;
-
-public:
- BufferByteStreamer(SmallVectorImpl<char> &Buffer,
- SmallVectorImpl<std::string> &Comments)
- : Buffer(Buffer), Comments(Comments) {}
- void EmitInt8(uint8_t Byte, const Twine &Comment) override {
- Buffer.push_back(Byte);
- Comments.push_back(Comment.str());
- }
- void EmitSLEB128(uint64_t DWord, const Twine &Comment) override {
- raw_svector_ostream OSE(Buffer);
- encodeSLEB128(DWord, OSE);
- Comments.push_back(Comment.str());
- }
- void EmitULEB128(uint64_t DWord, const Twine &Comment) override {
- raw_svector_ostream OSE(Buffer);
- encodeULEB128(DWord, OSE);
- Comments.push_back(Comment.str());
- }
-};
-
}
#endif
OpenPOWER on IntegriCloud