[llvm-commits] [llvm] r112707 - /llvm/trunk/utils/TableGen/EDEmitter.cpp
Chris Lattner
sabre at nondot.org
Wed Sep 1 08:39:31 PDT 2010
Author: lattner
Date: Wed Sep 1 10:39:31 2010
New Revision: 112707
URL: http://llvm.org/viewvc/llvm-project?rev=112707&view=rev
Log:
remove dead code.
Modified:
llvm/trunk/utils/TableGen/EDEmitter.cpp
Modified: llvm/trunk/utils/TableGen/EDEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/EDEmitter.cpp?rev=112707&r1=112706&r2=112707&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/EDEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/EDEmitter.cpp Wed Sep 1 10:39:31 2010
@@ -84,34 +84,6 @@
}
};
- class StructEmitter {
- private:
- std::string Name;
- typedef std::pair<const char*, const char*> member;
- std::vector< member > Members;
- public:
- StructEmitter(const char *N) : Name(N) {
- }
- void addMember(const char *t, const char *n) {
- member m(t, n);
- Members.push_back(m);
- }
- void emit(raw_ostream &o, unsigned int &i) {
- o.indent(i) << "struct " << Name.c_str() << " {" << "\n";
- i += 2;
-
- unsigned int index = 0;
- unsigned int numMembers = Members.size();
- for (index = 0; index < numMembers; ++index) {
- o.indent(i) << Members[index].first << " ";
- o.indent(i) << Members[index].second << ";" << "\n";
- }
-
- i -= 2;
- o.indent(i) << "};" << "\n";
- }
- };
-
class ConstantEmitter {
public:
virtual ~ConstantEmitter() { }
@@ -126,10 +98,6 @@
const char* String;
};
public:
- LiteralConstantEmitter(const char *string) :
- IsNumber(false),
- String(string) {
- }
LiteralConstantEmitter(int number = 0) :
IsNumber(true),
Number(number) {
@@ -139,11 +107,6 @@
Number = 0;
String = string;
}
- void set(int number) {
- IsNumber = true;
- String = NULL;
- Number = number;
- }
bool is(const char *string) {
return !strcmp(String, string);
}
More information about the llvm-commits
mailing list