zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / lib / Target / X86 / X86COFFMachineModuleInfo.h
blob98ab2a66a17f3f1c673a3c016efce2d98a69c53c
1 //===-- llvm/CodeGen/X86COFFMachineModuleInfo.h -----------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This is an MMI implementation for X86 COFF (windows) targets.
12 //===----------------------------------------------------------------------===//
14 #ifndef X86COFF_MACHINEMODULEINFO_H
15 #define X86COFF_MACHINEMODULEINFO_H
17 #include "llvm/CodeGen/MachineModuleInfo.h"
18 #include "llvm/ADT/DenseSet.h"
19 #include "X86MachineFunctionInfo.h"
21 namespace llvm {
22 class X86MachineFunctionInfo;
23 class TargetData;
25 /// X86COFFMachineModuleInfo - This is a MachineModuleInfoImpl implementation
26 /// for X86 COFF targets.
27 class X86COFFMachineModuleInfo : public MachineModuleInfoImpl {
28 DenseSet<MCSymbol const *> Externals;
29 public:
30 X86COFFMachineModuleInfo(const MachineModuleInfo &) {}
31 virtual ~X86COFFMachineModuleInfo();
33 void addExternalFunction(MCSymbol* Symbol) {
34 Externals.insert(Symbol);
37 typedef DenseSet<MCSymbol const *>::const_iterator externals_iterator;
38 externals_iterator externals_begin() const { return Externals.begin(); }
39 externals_iterator externals_end() const { return Externals.end(); }
44 } // end namespace llvm
46 #endif