aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Sparc
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-06-25 00:47:42 +0000
committerDevang Patel <dpatel@apple.com>2009-06-25 00:47:42 +0000
commitf667ab41ed67fa6ed6e3be92a8720820f134f895 (patch)
tree9097d3e984ee5f8ff10d725035189f9123998211 /lib/Target/Sparc
parent9624c615169fec3957e38ea181d634d51859a195 (diff)
downloadexternal_llvm-f667ab41ed67fa6ed6e3be92a8720820f134f895.zip
external_llvm-f667ab41ed67fa6ed6e3be92a8720820f134f895.tar.gz
external_llvm-f667ab41ed67fa6ed6e3be92a8720820f134f895.tar.bz2
No need to code gen MDNodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r--lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
index a2147dd..ddbf57b 100644
--- a/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
+++ b/lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
@@ -19,6 +19,7 @@
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
+#include "llvm/MDNode.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/DwarfWriter.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
@@ -253,6 +254,8 @@ void SparcAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
O << "\n\n";
std::string name = Mang->getValueName(GVar);
Constant *C = GVar->getInitializer();
+ if (isa<MDNode>(C))
+ return;
unsigned Size = TD->getTypeAllocSize(C->getType());
unsigned Align = TD->getPreferredAlignment(GVar);