llvm/lib/MC
Jim Grosbach e82b8eeaa2 Diagnostic for undefined assembler local symbols.
Re-apply 133010, with fixes for inline assembler.

Original commit message:
"When an assembler local symbol is used but not defined in a module, a
Darwin assembler wants to issue a diagnostic to that effect."

Added fix to only perform the check when finalizing, as otherwise we're not
done and undefined symbols may simply not have been encountered yet.

Passes "make check" and a self-host check on Darwin.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133071 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-15 18:33:28 +00:00
..
MCDisassembler switch to using a smallvector to avoid allocations for most normal size instructions. 2011-05-22 04:53:24 +00:00
MCParser Diagnostic for undefined assembler local symbols. 2011-06-15 18:33:28 +00:00
CMakeLists.txt Make the COFF streamer emit unwind info when processing a .seh_handlerdata 2011-05-22 03:01:05 +00:00
ELFObjectWriter.cpp Remove an uneeded switch - Turns out reloc results are identical w/o the switch. (face+palm) 2011-06-09 19:13:45 +00:00
ELFObjectWriter.h Address the last bit of relocation flag related divergence betweeen 2011-05-11 22:53:06 +00:00
MachObjectWriter.cpp MC/Mach-O: Update getSymbolAddress() to support evaluation of variables. 2011-04-29 18:13:42 +00:00
Makefile start straightening out libedis's dependencies and make it fit 2010-07-20 18:25:19 +00:00
MCAsmInfo.cpp Rename DwarfRequiresRelocationForStmtList to 2011-05-10 20:35:05 +00:00
MCAsmInfoCOFF.cpp Roll out r126425 and r126450 to see if it fixes the failures on the buildbots. 2011-02-25 16:30:32 +00:00
MCAsmInfoDarwin.cpp Rename DwarfRequiresRelocationForStmtList to 2011-05-10 20:35:05 +00:00
MCAsmStreamer.cpp Don't hardcode the %reg format in the streamer. 2011-06-02 02:34:55 +00:00
MCAssembler.cpp Don't force relaxation of AdvanceLoc instructions on OS X. gdb is happy with 2011-05-08 14:35:21 +00:00
MCCodeEmitter.cpp MC: Move target specific fixup info descriptors to TargetAsmBackend instead of 2010-12-16 03:20:06 +00:00
MCContext.cpp Make the StringMaps attached to MCContext use the MCContext's allocator; 2011-04-18 05:02:31 +00:00
MCDisassembler.cpp No newline at end of files. 2009-10-05 18:43:19 +00:00
MCDwarf.cpp No reason not to allow defining the CFA as a reg w/ offset zero. 2011-05-20 21:50:09 +00:00
MCELF.cpp sets bit 0 of the function address of thumb function in .symtab 2011-05-16 16:17:21 +00:00
MCELF.h Make all static functions become static class methods. Move shared (duplicated) functions to new MCELF class. 2011-02-28 21:45:04 +00:00
MCELFObjectTargetWriter.cpp Move some data to the TargetWriter. 2010-12-18 03:27:34 +00:00
MCELFStreamer.cpp sets bit 0 of the function address of thumb function in .symtab 2011-05-16 16:17:21 +00:00
MCELFStreamer.h Add constructors to MCElfStreamer and MCObjectStreamer to take an extra MCAssembler * argument. 2011-03-09 17:33:05 +00:00
MCExpr.cpp Fix emission of PPC64 assembler on non-darwin platforms by splitting 2011-06-09 20:25:38 +00:00
MCInst.cpp MC: Change MCInst::dump_pretty to not include a trailing newline. 2010-05-26 15:18:13 +00:00
MCInstPrinter.cpp Don't hardcode the %reg format in the streamer. 2011-06-02 02:34:55 +00:00
MCLabel.cpp Added support in MC for Directional Local Labels. 2010-05-17 23:08:19 +00:00
MCLoggingStreamer.cpp Simplify the handling of pcrel relocations on ELF. Now we do the right thing 2011-05-01 03:50:49 +00:00
MCMachObjectTargetWriter.cpp MC/Mach-O: On second thought, use a custom hook for enabling aggressive 2010-12-17 05:50:29 +00:00
MCMachOStreamer.cpp Factor some code into a new EmitFrames method. 2011-05-10 03:14:15 +00:00
MCNullStreamer.cpp Simplify the handling of pcrel relocations on ELF. Now we do the right thing 2011-05-01 03:50:49 +00:00
MCObjectStreamer.cpp Misc code refactorings: 2011-05-19 21:40:34 +00:00
MCObjectWriter.cpp Gas is very inconsistent about when a relaxation/relocation is needed. Do 2011-02-16 03:25:55 +00:00
MCPureStreamer.cpp Roll out r126425 and r126450 to see if it fixes the failures on the buildbots. 2011-02-25 16:30:32 +00:00
MCSection.cpp switch MCSectionCOFF from a syntactic to semantic representation, 2010-05-07 17:17:41 +00:00
MCSectionCOFF.cpp make isVirtualSection a virtual method on MCSection. Chris' suggestion. 2010-11-17 20:03:54 +00:00
MCSectionELF.cpp Be nice to Xcore and the XMOS assembler and avoid quoting section names 2011-03-04 20:03:14 +00:00
MCSectionMachO.cpp Reapply 127939 since Daniel fixed the breakage. <rdar://problem/9012638> 2011-03-19 02:42:31 +00:00
MCStreamer.cpp Make EmitIntValue() work properly on big-endian targets. 2011-06-07 17:31:02 +00:00
MCSymbol.cpp MC: Change variable symbols to be recognized as defined, by assigning their sections based on FindAssociatedSection(). 2011-04-29 18:20:17 +00:00
MCValue.cpp MCValue: Change to holding MCSymbolRefExprs instead of MCSymbols, we will need this for accessing to symbol modifiers. 2010-03-18 00:59:10 +00:00
MCWin64EH.cpp Add a parameter to the Win64 EH section getters to get a section with a 2011-05-27 19:09:24 +00:00
TargetAsmBackend.cpp Cast away "comparison between signed and unsigned integer" warnings. 2010-12-28 13:52:52 +00:00
WinCOFFObjectWriter.cpp Fix relative relocations. This is sufficient for running the rust testsuite with 2011-04-21 18:36:50 +00:00
WinCOFFStreamer.cpp Implement emission of all Win64 exception tables. Make the COFF streamer emit 2011-05-22 04:15:07 +00:00