summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/llvm/loweringpass.cpp
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-02-15 11:18:04 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-02-15 11:18:04 +0000
commit30d0bacf7aecfb6013ddd665d7385209899eeebd (patch)
treece764e101617349add47e4250aed1adde8b6407e /src/gallium/auxiliary/llvm/loweringpass.cpp
parent6ac2c1cc0cd1253ba2014d459010032127f185ec (diff)
parent66f22aa3bf7fa546e946b45156aa578e202982c9 (diff)
Merge commit 'origin/gallium-0.1' into gallium-0.1
Diffstat (limited to 'src/gallium/auxiliary/llvm/loweringpass.cpp')
-rw-r--r--src/gallium/auxiliary/llvm/loweringpass.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/llvm/loweringpass.cpp b/src/gallium/auxiliary/llvm/loweringpass.cpp
new file mode 100644
index 0000000000..556dbec366
--- /dev/null
+++ b/src/gallium/auxiliary/llvm/loweringpass.cpp
@@ -0,0 +1,17 @@
+#include "loweringpass.h"
+
+using namespace llvm;
+
+char LoweringPass::ID = 0;
+RegisterPass<LoweringPass> X("lowering", "Lowering Pass");
+
+LoweringPass::LoweringPass()
+ : ModulePass((intptr_t)&ID)
+{
+}
+
+bool LoweringPass::runOnModule(Module &m)
+{
+ llvm::cerr << "Hello: " << m.getModuleIdentifier() << "\n";
+ return false;
+}