1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/lib/MC/MCParser
Vedant Kumar 4cdff9c456 [MC/AsmParser] Avoid setting MCSymbol.IsUsed in some cases
Avoid marking some MCSymbols as used in MC/AsmParser.cpp when no uses
exist. This fixes a bug in parseAssignmentExpression() which
inadvertently sets IsUsed, thereby triggering:

    "invalid re-assignment of non-absolute variable"

on otherwise valid code. No other functionality change intended.

The original version of this patch touched many calls to MCSymbol
accessors. On rafael's advice, I have stripped this patch down a bit.

As a follow-up, I intend to find the call sites which intentionally set
IsUsed and force them to do so explicitly.

Differential Revision: http://reviews.llvm.org/D12347

llvm-svn: 246457
2015-08-31 17:44:53 +00:00
..
AsmLexer.cpp Extend MCAsmLexer so that it can peek forward several tokens 2015-08-17 14:35:25 +00:00
AsmParser.cpp [MC/AsmParser] Avoid setting MCSymbol.IsUsed in some cases 2015-08-31 17:44:53 +00:00
CMakeLists.txt Fix header path in CMake. NFC. 2015-06-19 20:49:02 +00:00
COFFAsmParser.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
DarwinAsmParser.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
ELFAsmParser.cpp Fix PR23872: Integrated assembler error message when using .type directive with @ in AArch32 assembly. 2015-07-01 08:58:49 +00:00
LLVMBuild.txt
Makefile
MCAsmLexer.cpp [mips] Print warning when using register names not available in N32/64 2014-10-03 15:37:37 +00:00
MCAsmParser.cpp Add const. NFC. 2014-11-11 05:11:47 +00:00
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp [llvm-mc] Pushing plumbing through for --fatal-warnings flag. 2015-07-27 21:56:53 +00:00