llvm.org GIT mirror llvm / bccdcb1
Remove dead code. MDNode and MDString are not Constant anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78207 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
7 changed file(s) with 0 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
2020 #include "ARMMachineFunctionInfo.h"
2121 #include "llvm/Constants.h"
2222 #include "llvm/Module.h"
23 #include "llvm/Metadata.h"
2423 #include "llvm/CodeGen/AsmPrinter.h"
2524 #include "llvm/CodeGen/DwarfWriter.h"
2625 #include "llvm/CodeGen/MachineModuleInfo.h"
11451144
11461145 std::string name = Mang->getMangledName(GVar);
11471146 Constant *C = GVar->getInitializer();
1148 if (isa(C) || isa(C))
1149 return;
11501147 const Type *Type = C->getType();
11511148 unsigned Size = TD->getTypeAllocSize(Type);
11521149 unsigned Align = TD->getPreferredAlignmentLog(GVar);
1616 #include "AlphaInstrInfo.h"
1717 #include "AlphaTargetMachine.h"
1818 #include "llvm/Module.h"
19 #include "llvm/Metadata.h"
2019 #include "llvm/Type.h"
2120 #include "llvm/Assembly/Writer.h"
2221 #include "llvm/CodeGen/AsmPrinter.h"
208207
209208 std::string name = Mang->getMangledName(GVar);
210209 Constant *C = GVar->getInitializer();
211 if (isa(C) || isa(C))
212 return;
213210 unsigned Size = TD->getTypeAllocSize(C->getType());
214211 unsigned Align = TD->getPreferredAlignmentLog(GVar);
215212
1818 #include "llvm/Constants.h"
1919 #include "llvm/DerivedTypes.h"
2020 #include "llvm/Module.h"
21 #include "llvm/Metadata.h"
2221 #include "llvm/Assembly/Writer.h"
2322 #include "llvm/CodeGen/AsmPrinter.h"
2423 #include "llvm/CodeGen/DwarfWriter.h"
518517 printVisibility(name, GVar->getVisibility());
519518
520519 Constant *C = GVar->getInitializer();
521 if (isa(C) || isa(C))
522 return;
523520 const Type *Type = C->getType();
524521 unsigned Size = TD->getTypeAllocSize(Type);
525522 unsigned Align = TD->getPreferredAlignmentLog(GVar);
2121 #include "llvm/Constants.h"
2222 #include "llvm/DerivedTypes.h"
2323 #include "llvm/Module.h"
24 #include "llvm/Metadata.h"
2524 #include "llvm/CodeGen/AsmPrinter.h"
2625 #include "llvm/CodeGen/DwarfWriter.h"
2726 #include "llvm/CodeGen/MachineFunctionPass.h"
449448 O << "\n\n";
450449 std::string name = Mang->getMangledName(GVar);
451450 Constant *C = GVar->getInitializer();
452 if (isa(C) || isa(C))
453 return;
454451 const Type *CTy = C->getType();
455452 unsigned Size = TD->getTypeAllocSize(CTy);
456453 const ConstantArray *CVA = dyn_cast(C);
2323 #include "llvm/Constants.h"
2424 #include "llvm/DerivedTypes.h"
2525 #include "llvm/Module.h"
26 #include "llvm/Metadata.h"
2726 #include "llvm/Assembly/Writer.h"
2827 #include "llvm/CodeGen/AsmPrinter.h"
2928 #include "llvm/CodeGen/DwarfWriter.h"
674673 printVisibility(name, GVar->getVisibility());
675674
676675 Constant *C = GVar->getInitializer();
677 if (isa(C) || isa(C))
678 return;
679676 const Type *Type = C->getType();
680677 unsigned Size = TD->getTypeAllocSize(Type);
681678 unsigned Align = TD->getPreferredAlignmentLog(GVar);
1818 #include "llvm/Constants.h"
1919 #include "llvm/DerivedTypes.h"
2020 #include "llvm/Module.h"
21 #include "llvm/Metadata.h"
2221 #include "llvm/CodeGen/AsmPrinter.h"
2322 #include "llvm/CodeGen/DwarfWriter.h"
2423 #include "llvm/CodeGen/MachineFunctionPass.h"
222221 O << "\n\n";
223222 std::string name = Mang->getMangledName(GVar);
224223 Constant *C = GVar->getInitializer();
225 if (isa(C) || isa(C))
226 return;
227224 unsigned Size = TD->getTypeAllocSize(C->getType());
228225 unsigned Align = TD->getPreferredAlignment(GVar);
229226
2222 #include "llvm/CallingConv.h"
2323 #include "llvm/DerivedTypes.h"
2424 #include "llvm/Module.h"
25 #include "llvm/Metadata.h"
2625 #include "llvm/Type.h"
2726 #include "llvm/ADT/Statistic.h"
2827 #include "llvm/ADT/StringExtras.h"
770769
771770 std::string name = Mang->getMangledName(GVar);
772771 Constant *C = GVar->getInitializer();
773 if (isa(C) || isa(C))
774 return;
775772 const Type *Type = C->getType();
776773 unsigned Size = TD->getTypeAllocSize(Type);
777774 unsigned Align = TD->getPreferredAlignmentLog(GVar);