1. [XCOFF][AIX] Differentiate usage of label symbol and csect symbol (details)
Commit 0dc0572b48ed889e6f750fd65b876a0420805377 by daltenty
[XCOFF][AIX] Differentiate usage of label symbol and csect symbol
We are using symbols to represent label and csect interchangeably
before, and that could be a problem. There are cases we would need to
add storage mapping class to the symbol if that symbol is actually the
name of a csect, but it's hard for us to figure out whether that symbol
is a label or csect.
This patch intend to do the following:
   1. Construct a QualName (A name include the storage mapping class)
      MCSymbolXCOFF for every MCSectionXCOFF.
   2. Keep a pointer to that QualName inside of MCSectionXCOFF.
   3. Use that QualName whenever we need a symbol refers to that
   4. Adapt the snowball effect from the above changes in
Reviewers: xingxue, DiggerLin, sfertile, daltenty,
Reviewed By: DiggerLin, daltenty
Subscribers: wuzish, nemanjai, mgorny, hiraditya, kbarton, jsji,
Tags: #llvm
Differential Revision:
The file was modifiedllvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
The file was modifiedllvm/include/llvm/MC/MCSectionXCOFF.h
The file was modifiedllvm/include/llvm/MC/MCAsmInfoXCOFF.h
The file was modifiedllvm/include/llvm/MC/MCStreamer.h
The file was addedllvm/lib/BinaryFormat/XCOFF.cpp
The file was modifiedllvm/lib/MC/MCSectionXCOFF.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-data.ll
The file was modifiedllvm/include/llvm/MC/MCXCOFFStreamer.h
The file was modifiedllvm/lib/MC/MCAsmInfo.cpp
The file was modifiedllvm/lib/BinaryFormat/CMakeLists.txt
The file was modifiedllvm/lib/MC/MCAsmStreamer.cpp
The file was modifiedllvm/lib/MC/MCContext.cpp
The file was modifiedllvm/include/llvm/MC/MCAsmInfo.h
The file was modifiedllvm/lib/MC/MCXCOFFStreamer.cpp
The file was modifiedllvm/lib/MC/MCStreamer.cpp
The file was modifiedllvm/lib/MC/XCOFFObjectWriter.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-lcomm.ll
The file was modifiedllvm/include/llvm/BinaryFormat/XCOFF.h
The file was modifiedllvm/lib/MC/MCAsmInfoXCOFF.cpp