summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-11-02 17:35:25 +0000
committerJim Grosbach <grosbach@apple.com>2010-11-02 17:35:25 +0000
commit0b7fda23cc5e834c7fd884c3b5f95672484286ae (patch)
treea5ae04bfd8c730b1c945b071fa2e14c7cdee7b8d /llvm/utils/TableGen/CodeEmitterGen.cpp
parenta7a903e7065645b70f57a6ed5dc1c8e4a0e49fb7 (diff)
downloadbcm5719-llvm-0b7fda23cc5e834c7fd884c3b5f95672484286ae.tar.gz
bcm5719-llvm-0b7fda23cc5e834c7fd884c3b5f95672484286ae.zip
Revert r114340 (improvements in Darwin function prologue/epilogue), as it broke
assumptions about stack layout. Specifically, LR must be saved next to FP. llvm-svn: 118026
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp
index a7b96564799..fbe9947b096 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ b/llvm/utils/TableGen/CodeEmitterGen.cpp
@@ -17,9 +17,15 @@
#include "CodeGenTarget.h"
#include "Record.h"
#include "llvm/ADT/StringExtras.h"
+#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
using namespace llvm;
+static cl::opt<bool>
+MCEmitter("mc-code-emitter",
+ cl::desc("Generate CodeEmitter for use with the MC library."),
+ cl::init(false));
+
void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) {
for (std::vector<Record*>::iterator I = Insts.begin(), E = Insts.end();
I != E; ++I) {
OpenPOWER on IntegriCloud