llvm.org GIT mirror llvm / 5ff4bc2
* Set the scope attributes for the ASM symbol we added to be the value passed into the function. * Reorder some header files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153783 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
1 changed file(s) with 20 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
1515 #include "llvm/Constants.h"
1616 #include "llvm/LLVMContext.h"
1717 #include "llvm/Module.h"
18 #include "llvm/ADT/OwningPtr.h"
19 #include "llvm/ADT/Triple.h"
2018 #include "llvm/Bitcode/ReaderWriter.h"
21 #include "llvm/Support/SystemUtils.h"
19 #include "llvm/MC/MCAsmInfo.h"
20 #include "llvm/MC/MCExpr.h"
21 #include "llvm/MC/MCInst.h"
22 #include "llvm/MC/MCStreamer.h"
23 #include "llvm/MC/MCSubtargetInfo.h"
24 #include "llvm/MC/MCSymbol.h"
25 #include "llvm/MC/MCTargetAsmParser.h"
26 #include "llvm/MC/SubtargetFeature.h"
27 #include "llvm/MC/MCParser/MCAsmParser.h"
28 #include "llvm/Target/TargetMachine.h"
29 #include "llvm/Target/TargetRegisterInfo.h"
30 #include "llvm/Support/Host.h"
31 #include "llvm/Support/MathExtras.h"
2232 #include "llvm/Support/MemoryBuffer.h"
23 #include "llvm/Support/MathExtras.h"
24 #include "llvm/Support/Host.h"
2533 #include "llvm/Support/Path.h"
2634 #include "llvm/Support/Process.h"
2735 #include "llvm/Support/SourceMgr.h"
36 #include "llvm/Support/SystemUtils.h"
2837 #include "llvm/Support/TargetRegistry.h"
2938 #include "llvm/Support/TargetSelect.h"
3039 #include "llvm/Support/system_error.h"
31 #include "llvm/MC/MCAsmInfo.h"
32 #include "llvm/MC/MCExpr.h"
33 #include "llvm/MC/MCInst.h"
34 #include "llvm/MC/MCParser/MCAsmParser.h"
35 #include "llvm/MC/MCStreamer.h"
36 #include "llvm/MC/MCSubtargetInfo.h"
37 #include "llvm/MC/MCSymbol.h"
38 #include "llvm/MC/SubtargetFeature.h"
39 #include "llvm/MC/MCTargetAsmParser.h"
40 #include "llvm/Target/TargetMachine.h"
41 #include "llvm/Target/TargetRegisterInfo.h"
40 #include "llvm/ADT/OwningPtr.h"
41 #include "llvm/ADT/Triple.h"
42
4243 using namespace llvm;
4344
4445 LTOModule::LTOModule(llvm::Module *m, llvm::TargetMachine *t)
407408 addDefinedFunctionSymbol(cast(info.symbol));
408409 else
409410 addDefinedDataSymbol(info.symbol);
411
412 _symbols.back().attributes &= ~LTO_SYMBOL_SCOPE_MASK;
413 _symbols.back().attributes |= scope;
410414 }
411415
412416 /// addAsmGlobalSymbolUndef - Add a global symbol from module-level ASM to the