llvm.org GIT mirror llvm / 8afcab4
X86: remove X86COFFMachineModuleInfo Remove dead code. This is vestigial after r98384. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207927 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 6 years ago
4 changed file(s) with 0 addition(s) and 82 deletion(s). Raw diff Collapse all Expand all
1313
1414 set(sources
1515 X86AsmPrinter.cpp
16 X86COFFMachineModuleInfo.cpp
1716 X86CodeEmitter.cpp
1817 X86FastISel.cpp
1918 X86FloatingPoint.cpp
1414 #include "X86AsmPrinter.h"
1515 #include "InstPrinter/X86ATTInstPrinter.h"
1616 #include "MCTargetDesc/X86BaseInfo.h"
17 #include "X86COFFMachineModuleInfo.h"
1817 #include "X86InstrInfo.h"
1918 #include "X86MachineFunctionInfo.h"
2019 #include "llvm/ADT/SmallString.h"
658657 }
659658
660659 if (Subtarget->isTargetCOFF()) {
661 X86COFFMachineModuleInfo &COFFMMI =
662 MMI->getObjFileInfo();
663
664 // Emit type information for external functions
665 typedef X86COFFMachineModuleInfo::externals_iterator externals_iterator;
666 for (externals_iterator I = COFFMMI.externals_begin(),
667 E = COFFMMI.externals_end();
668 I != E; ++I) {
669 OutStreamer.BeginCOFFSymbolDef(CurrentFnSym);
670 OutStreamer.EmitCOFFSymbolStorageClass(COFF::IMAGE_SYM_CLASS_EXTERNAL);
671 OutStreamer.EmitCOFFSymbolType(COFF::IMAGE_SYM_DTYPE_FUNCTION
672 << COFF::SCT_COMPLEX_TYPE_SHIFT);
673 OutStreamer.EndCOFFSymbolDef();
674 }
675
676660 // Necessary for dllexport support
677661 std::vector DLLExportedFns, DLLExportedGlobals;
678662
+0
-19
lib/Target/X86/X86COFFMachineModuleInfo.cpp less more
None //===-- X86COFFMachineModuleInfo.cpp - X86 COFF MMI Impl ------------------===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This is an MMI implementation for X86 COFF (windows) targets.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "X86COFFMachineModuleInfo.h"
14 using namespace llvm;
15
16
17 X86COFFMachineModuleInfo::~X86COFFMachineModuleInfo() {
18 }
+0
-46
lib/Target/X86/X86COFFMachineModuleInfo.h less more
None //===-- X86coffmachinemoduleinfo.h - X86 COFF MMI Impl ----------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This is an MMI implementation for X86 COFF (windows) targets.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #ifndef X86COFF_MACHINEMODULEINFO_H
14 #define X86COFF_MACHINEMODULEINFO_H
15
16 #include "X86MachineFunctionInfo.h"
17 #include "llvm/ADT/DenseSet.h"
18 #include "llvm/CodeGen/MachineModuleInfo.h"
19
20 namespace llvm {
21 class X86MachineFunctionInfo;
22 class DataLayout;
23
24 /// X86COFFMachineModuleInfo - This is a MachineModuleInfoImpl implementation
25 /// for X86 COFF targets.
26 class X86COFFMachineModuleInfo : public MachineModuleInfoImpl {
27 DenseSet Externals;
28 public:
29 X86COFFMachineModuleInfo(const MachineModuleInfo &) {}
30 virtual ~X86COFFMachineModuleInfo();
31
32 void addExternalFunction(MCSymbol* Symbol) {
33 Externals.insert(Symbol);
34 }
35
36 typedef DenseSet::const_iterator externals_iterator;
37 externals_iterator externals_begin() const { return Externals.begin(); }
38 externals_iterator externals_end() const { return Externals.end(); }
39 };
40
41
42
43 } // end namespace llvm
44
45 #endif