<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 14, 2017 at 1:33 AM, Eugene Zelenko via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="gmail-cremed cremed">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Author: eugenezelenko<br>
Date: Mon Feb 13 18:33:36 2017<br>
New Revision: 295009<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=295009&view=rev" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project?rev=295009&view=rev</a><br>
Log:<br>
[MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).<br>
<br>
Same changes in files affected by reduced MC headers dependencies.<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/<wbr>CodeGen/AsmPrinter.h<br>
    llvm/trunk/include/llvm/MC/<wbr>MCContext.h<br>
    llvm/trunk/include/llvm/MC/<wbr>MCDwarf.h<br>
    llvm/trunk/include/llvm/MC/<wbr>MCSectionELF.h<br>
    llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/AsmPrinter.cpp<br>
    llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/ErlangGCPrinter.cpp<br>
    llvm/trunk/lib/MC/MCContext.<wbr>cpp<br>
    llvm/trunk/lib/MC/MCDwarf.cpp<br>
    llvm/trunk/lib/MC/<wbr>MCObjectFileInfo.cpp<br>
    llvm/trunk/lib/MC/<wbr>MCSectionELF.cpp<br>
    llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.cpp<br>
    llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.h<br>
    llvm/trunk/lib/Target/Mips/<wbr>MCTargetDesc/MipsOptionRecord.<wbr>cpp<br>
    llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.<wbr>cpp<br>
    llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.h<br>
<br>
Modified: llvm/trunk/include/llvm/<wbr>CodeGen/AsmPrinter.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/include/<wbr>llvm/CodeGen/AsmPrinter.h?rev=<wbr>295009&r1=295008&r2=295009&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/include/llvm/<wbr>CodeGen/AsmPrinter.h (original)<br>
+++ llvm/trunk/include/llvm/<wbr>CodeGen/AsmPrinter.h Mon Feb 13 18:33:36 2017<br>
@@ -1,4 +1,4 @@<br>
-//===-- llvm/CodeGen/AsmPrinter.h - AsmPrinter Framework --------*- C++ -*-===//<br>
+//===- llvm/CodeGen/AsmPrinter.h - AsmPrinter Framework ---------*- C++ -*-===//<br>
 //<br>
 //                     The LLVM Compiler Infrastructure<br>
 //<br>
@@ -17,35 +17,41 @@<br>
 #define LLVM_CODEGEN_ASMPRINTER_H<br>
<br>
 #include "llvm/ADT/MapVector.h"<br>
+#include "llvm/ADT/SmallVector.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
 #include "llvm/ADT/Twine.h"<br>
 #include "llvm/CodeGen/<wbr>MachineFunctionPass.h"<br>
 #include "llvm/CodeGen/<wbr>DwarfStringPoolEntry.h"<br>
 #include "llvm/IR/InlineAsm.h"<br>
-#include "llvm/Support/DataTypes.h"<br>
+#include "llvm/IR/LLVMContext.h"<br>
 #include "llvm/Support/ErrorHandling.h"<br>
 #include "llvm/Support/SourceMgr.h"<br>
+#include <cstdint><br>
+#include <memory><br>
+#include <utility><br>
+#include <vector><br>
<br>
 namespace llvm {<br>
+<br>
 class AsmPrinterHandler;<br>
 class BlockAddress;<br>
-class ByteStreamer;<br>
-class GCStrategy;<br>
 class Constant;<br>
 class ConstantArray;<br>
+class DataLayout;<br>
 class DIE;<br>
 class DIEAbbrev;<br>
+class DwarfDebug;<br>
 class GCMetadataPrinter;<br>
 class GlobalIndirectSymbol;<br>
 class GlobalValue;<br>
 class GlobalVariable;<br>
+class GCStrategy;<br>
 class MachineBasicBlock;<br>
+class MachineConstantPoolValue;<br>
 class MachineFunction;<br>
 class MachineInstr;<br>
-class MachineLocation;<br>
-class MachineLoopInfo;<br>
-class MachineLoop;<br>
-class MachineConstantPoolValue;<br>
 class MachineJumpTableInfo;<br>
+class MachineLoopInfo;<br>
 class MachineModuleInfo;<br>
 class MCAsmInfo;<br>
 class MCCFIInstruction;<br>
@@ -58,10 +64,7 @@ class MCSubtargetInfo;<br>
 class MCSymbol;<br>
 class MCTargetOptions;<br>
 class MDNode;<br>
-class DwarfDebug;<br>
-class Mangler;<br>
 class TargetLoweringObjectFile;<br>
-class DataLayout;<br>
 class TargetMachine;<br>
<br>
 /// This class is intended to be used as a driving class for all asm writers.<br>
@@ -85,20 +88,20 @@ public:<br>
   std::unique_ptr<MCStreamer> OutStreamer;<br>
<br>
   /// The current machine function.<br>
-  const MachineFunction *MF;<br>
+  const MachineFunction *MF = nullptr;<br>
<br>
   /// This is a pointer to the current MachineModuleInfo.<br>
-  MachineModuleInfo *MMI;<br>
+  MachineModuleInfo *MMI = nullptr;<br>
<br>
   /// The symbol for the current function. This is recalculated at the beginning<br>
   /// of each call to runOnMachineFunction().<br>
   ///<br>
-  MCSymbol *CurrentFnSym;<br>
+  MCSymbol *CurrentFnSym = nullptr;<br>
<br>
   /// The symbol used to represent the start of the current function for the<br>
   /// purpose of calculating its size (e.g. using the .size directive). By<br>
   /// default, this is equal to CurrentFnSym.<br>
-  MCSymbol *CurrentFnSymForSize;<br>
+  MCSymbol *CurrentFnSymForSize = nullptr;<br>
<br>
   /// Map global GOT equivalent MCSymbols to GlobalVariables and keep track of<br>
   /// its number of uses by other globals.<br>
@@ -106,12 +109,12 @@ public:<br>
   MapVector<const MCSymbol *, GOTEquivUsePair> GlobalGOTEquivs;<br>
<br>
 private:<br>
-  MCSymbol *CurrentFnBegin;<br>
-  MCSymbol *CurrentFnEnd;<br>
-  MCSymbol *CurExceptionSym;<br>
+  MCSymbol *CurrentFnBegin = nullptr;<br>
+  MCSymbol *CurrentFnEnd = nullptr;<br>
+  MCSymbol *CurExceptionSym = nullptr;<br>
<br>
   // The garbage collection metadata printer table.<br>
-  void *GCMetadataPrinters; // Really a DenseMap.<br>
+  void *GCMetadataPrinters = nullptr; // Really a DenseMap.<br>
<br>
   /// Emit comments in assembly output if this is true.<br>
   ///<br>
@@ -119,7 +122,7 @@ private:<br>
   static char ID;<br>
<br>
   /// If VerboseAsm is set, a pointer to the loop info for this function.<br>
-  MachineLoopInfo *LI;<br>
+  MachineLoopInfo *LI = nullptr;<br>
<br>
   struct HandlerInfo {<br>
     AsmPrinterHandler *Handler;<br>
@@ -127,6 +130,7 @@ private:<br>
     const char *TimerDescription;<br>
     const char *TimerGroupName;<br>
     const char *TimerGroupDescription;<br>
+<br>
     HandlerInfo(AsmPrinterHandler *Handler, const char *TimerName,<br>
                 const char *TimerDescription, const char *TimerGroupName,<br>
                 const char *TimerGroupDescription)<br>
@@ -152,10 +156,10 @@ private:<br>
   mutable std::unique_ptr<<wbr>SrcMgrDiagInfo> DiagInfo;<br>
<br>
   /// If the target supports dwarf debug info, this pointer is non-null.<br>
-  DwarfDebug *DD;<br>
+  DwarfDebug *DD = nullptr;<br>
<br>
   /// If the current module uses dwarf CFI annotations strictly for debugging.<br>
-  bool isCFIMoveForDebugging;<br>
+  bool isCFIMoveForDebugging = false;<br>
<br>
 protected:<br>
   explicit AsmPrinter(TargetMachine &TM, std::unique_ptr<MCStreamer> Streamer);<br>
@@ -395,7 +399,7 @@ public:<br>
   //===-------------------------<wbr>------------------------------<wbr>-----------===//<br>
   // Symbol Lowering Routines.<br>
   //===-------------------------<wbr>------------------------------<wbr>-----------===//<br>
-public:<br>
+<br>
   MCSymbol *createTempSymbol(const Twine &Name) const;<br>
<br>
   /// Return the MCSymbol for a private symbol with global value name as its<br>
@@ -421,7 +425,7 @@ public:<br>
   //===-------------------------<wbr>------------------------------<wbr>-----------===//<br>
   // Emission Helper Routines.<br>
   //===-------------------------<wbr>------------------------------<wbr>-----------===//<br>
-public:<br>
+<br>
   /// This is just convenient handler for printing offsets.<br>
   void printOffset(int64_t Offset, raw_ostream &OS) const;<br>
<br>
@@ -525,7 +529,7 @@ public:<br>
   //===-------------------------<wbr>------------------------------<wbr>-----------===//<br>
   // Inline Asm Support<br>
   //===-------------------------<wbr>------------------------------<wbr>-----------===//<br>
-public:<br>
+<br>
   // These are hooks that targets can override to implement inline asm<br>
   // support.  These should probably be moved out of AsmPrinter someday.<br>
<br>
@@ -569,9 +573,9 @@ public:<br>
 private:<br>
   /// Private state for PrintSpecial()<br>
   // Assign a unique ID to this machine instruction.<br>
-  mutable const MachineInstr *LastMI;<br>
-  mutable unsigned LastFn;<br>
-  mutable unsigned Counter;<br>
+  mutable const MachineInstr *LastMI = nullptr;<br>
+  mutable unsigned LastFn = 0;<br>
+  mutable unsigned Counter = ~0U;<br>
<br>
   /// This method emits the header for the current function.<br>
   virtual void EmitFunctionHeader();<br>
@@ -610,6 +614,7 @@ private:<br>
   void emitGlobalIndirectSymbol(<wbr>Module &M,<br>
                                 const GlobalIndirectSymbol& GIS);<br>
 };<br>
-}<br>
<br>
-#endif<br>
+} // end namespace llvm<br>
+<br>
+#endif // LLVM_CODEGEN_ASMPRINTER_H<br>
<br>
Modified: llvm/trunk/include/llvm/MC/<wbr>MCContext.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCContext.h?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/include/<wbr>llvm/MC/MCContext.h?rev=<wbr>295009&r1=295008&r2=295009&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/include/llvm/MC/<wbr>MCContext.h (original)<br>
+++ llvm/trunk/include/llvm/MC/<wbr>MCContext.h Mon Feb 13 18:33:36 2017<br>
@@ -15,6 +15,7 @@<br>
 #include "llvm/ADT/SmallString.h"<br>
 #include "llvm/ADT/SmallVector.h"<br>
 #include "llvm/ADT/StringMap.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
 #include "llvm/ADT/Twine.h"<br>
 #include "llvm/MC/MCDwarf.h"<br>
 #include "llvm/MC/MCSubtargetInfo.h"<br>
@@ -23,35 +24,35 @@<br>
 #include "llvm/Support/Compiler.h"<br>
 #include "llvm/Support/Dwarf.h"<br>
 #include "llvm/Support/raw_ostream.h"<br>
+#include <algorithm><br>
+#include <cassert><br>
+#include <cstddef><br>
+#include <cstdint><br>
 #include <map><br>
-#include <tuple><br>
-#include <vector> // FIXME: Shouldn't be needed.<br>
+#include <memory><br>
+#include <string><br>
+#include <utility><br>
+#include <vector><br>
<br>
 namespace llvm {<br>
+<br>
+  class CodeViewContext;<br>
   class MCAsmInfo;<br>
-  class MCExpr;<br>
-  class MCSection;<br>
-  class MCSymbol;<br>
-  class MCSymbolELF;<br>
   class MCLabel;<br>
-  struct MCDwarfFile;<br>
-  class MCDwarfLoc;<br>
   class MCObjectFileInfo;<br>
   class MCRegisterInfo;<br>
-  class MCLineSection;<br>
-  class SMLoc;<br>
-  class MCSectionMachO;<br>
-  class MCSectionELF;<br>
+  class MCSection;<br>
   class MCSectionCOFF;<br>
-  class CodeViewContext;<br>
+  class MCSectionELF;<br>
+  class MCSectionMachO;<br>
+  class MCSymbol;<br>
+  class MCSymbolELF;<br>
+  class SMLoc;<br>
<br>
   /// Context object for machine code objects.  This class owns all of the<br>
   /// sections that it creates.<br>
   ///<br>
   class MCContext {<br>
-    MCContext(const MCContext &) = delete;<br>
-    MCContext &operator=(const MCContext &) = delete;<br>
-<br>
   public:<br>
     typedef StringMap<MCSymbol *, BumpPtrAllocator &> SymbolTable;<br>
<br>
@@ -122,7 +123,7 @@ namespace llvm {<br>
     /// Boolean toggled when .secure_log_unique / .secure_log_reset is seen to<br>
     /// catch errors if .secure_log_unique appears twice without<br>
     /// .secure_log_reset appearing between them.<br>
-    bool SecureLogUsed;<br>
+    bool SecureLogUsed = false;<br>
<br>
     /// The compilation directory to use for DW_AT_comp_dir.<br>
     SmallString<128> CompilationDir;<br>
@@ -138,14 +139,14 @@ namespace llvm {<br>
<br>
     /// The current dwarf line information from the last dwarf .loc directive.<br>
     MCDwarfLoc CurrentDwarfLoc;<br>
-    bool DwarfLocSeen;<br>
+    bool DwarfLocSeen = false;<br>
<br>
     /// Generate dwarf debugging info for assembly source files.<br>
-    bool GenDwarfForAssembly;<br>
+    bool GenDwarfForAssembly = false;<br>
<br>
     /// The current dwarf file number when generate dwarf debugging info for<br>
     /// assembly source files.<br>
-    unsigned GenDwarfFileNumber;<br>
+    unsigned GenDwarfFileNumber = 0;<br>
<br>
     /// Sections for generating the .debug_ranges and .debug_aranges sections.<br>
     SetVector<MCSection *> SectionsForRanges;<br>
@@ -163,25 +164,27 @@ namespace llvm {<br>
     StringRef DwarfDebugProducer;<br>
<br>
     /// The maximum version of dwarf that we should emit.<br>
-    uint16_t DwarfVersion;<br>
+    uint16_t DwarfVersion = 4;<br>
<br>
     /// Honor temporary labels, this is useful for debugging semantic<br>
     /// differences between temporary and non-temporary labels (primarily on<br>
     /// Darwin).<br>
-    bool AllowTemporaryLabels;<br>
+    bool AllowTemporaryLabels = true;<br>
     bool UseNamesOnTempLabels = true;<br>
<br>
     /// The Compile Unit ID that we are currently processing.<br>
-    unsigned DwarfCompileUnitID;<br>
+    unsigned DwarfCompileUnitID = 0;<br>
<br>
     struct ELFSectionKey {<br>
       std::string SectionName;<br>
       StringRef GroupName;<br>
       unsigned UniqueID;<br>
+<br>
       ELFSectionKey(StringRef SectionName, StringRef GroupName,<br>
                     unsigned UniqueID)<br>
           : SectionName(SectionName), GroupName(GroupName), UniqueID(UniqueID) {<br>
       }<br>
+<br>
       bool operator<(const ELFSectionKey &Other) const {<br>
         if (SectionName != Other.SectionName)<br>
           return SectionName < Other.SectionName;<br>
@@ -196,10 +199,12 @@ namespace llvm {<br>
       StringRef GroupName;<br>
       int SelectionKey;<br>
       unsigned UniqueID;<br>
+<br>
       COFFSectionKey(StringRef SectionName, StringRef GroupName,<br>
                      int SelectionKey, unsigned UniqueID)<br>
           : SectionName(SectionName), GroupName(GroupName),<br>
             SelectionKey(SelectionKey), UniqueID(UniqueID) {}<br>
+<br>
       bool operator<(const COFFSectionKey &Other) const {<br>
         if (SectionName != Other.SectionName)<br>
           return SectionName < Other.SectionName;<br>
@@ -221,7 +226,7 @@ namespace llvm {<br>
     /// Do automatic reset in destructor<br>
     bool AutoReset;<br>
<br>
-    bool HadError;<br>
+    bool HadError = false;<br>
<br>
     MCSymbol *createSymbolImpl(const StringMapEntry<bool> *Name,<br>
                                bool CanBeUnnamed);<br>
@@ -242,6 +247,8 @@ namespace llvm {<br>
     explicit MCContext(const MCAsmInfo *MAI, const MCRegisterInfo *MRI,<br>
                        const MCObjectFileInfo *MOFI,<br>
                        const SourceMgr *Mgr = nullptr, bool DoAutoReset = true);<br>
+    MCContext(const MCContext &) = delete;<br>
+    MCContext &operator=(const MCContext &) = delete;<br>
     ~MCContext();<br>
<br>
     const SourceMgr *getSourceManager() const { return SrcMgr; }<br>
@@ -456,6 +463,7 @@ namespace llvm {<br>
     const SmallVectorImpl<MCDwarfFile> &getMCDwarfFiles(unsigned CUID = 0) {<br>
       return getMCDwarfLineTable(CUID).<wbr>getMCDwarfFiles();<br>
     }<br>
+<br>
     const SmallVectorImpl<std::string> &getMCDwarfDirs(unsigned CUID = 0) {<br>
       return getMCDwarfLineTable(CUID).<wbr>getMCDwarfDirs();<br>
     }<br>
@@ -466,10 +474,13 @@ namespace llvm {<br>
           return true;<br>
       return false;<br>
     }<br>
+<br>
     unsigned getDwarfCompileUnitID() { return DwarfCompileUnitID; }<br>
+<br>
     void setDwarfCompileUnitID(unsigned CUIndex) {<br>
       DwarfCompileUnitID = CUIndex;<br>
     }<br>
+<br>
     void setMCLineTableCompilationDir(<wbr>unsigned CUID, StringRef CompilationDir) {<br>
       getMCDwarfLineTable(CUID).<wbr>setCompilationDir(<wbr>CompilationDir);<br>
     }<br>
@@ -489,6 +500,7 @@ namespace llvm {<br>
       CurrentDwarfLoc.<wbr>setDiscriminator(<wbr>Discriminator);<br>
       DwarfLocSeen = true;<br>
     }<br>
+<br>
     void clearDwarfLocSeen() { DwarfLocSeen = false; }<br>
<br>
     bool getDwarfLocSeen() { return DwarfLocSeen; }<br>
@@ -497,20 +509,25 @@ namespace llvm {<br>
     bool getGenDwarfForAssembly() { return GenDwarfForAssembly; }<br>
     void setGenDwarfForAssembly(bool Value) { GenDwarfForAssembly = Value; }<br>
     unsigned getGenDwarfFileNumber() { return GenDwarfFileNumber; }<br>
+<br>
     void setGenDwarfFileNumber(unsigned FileNumber) {<br>
       GenDwarfFileNumber = FileNumber;<br>
     }<br>
+<br>
     const SetVector<MCSection *> &getGenDwarfSectionSyms() {<br>
       return SectionsForRanges;<br>
     }<br>
+<br>
     bool addGenDwarfSection(MCSection *Sec) {<br>
       return SectionsForRanges.insert(Sec);<br>
     }<br>
<br>
     void finalizeDwarfSections(<wbr>MCStreamer &MCOS);<br>
+<br>
     const std::vector<<wbr>MCGenDwarfLabelEntry> &getMCGenDwarfLabelEntries() const {<br>
       return MCGenDwarfLabelEntries;<br>
     }<br>
+<br>
     void addMCGenDwarfLabelEntry(const MCGenDwarfLabelEntry &E) {<br>
       MCGenDwarfLabelEntries.push_<wbr>back(E);<br>
     }<br>
@@ -520,10 +537,12 @@ namespace llvm {<br>
<br>
     void setDwarfDebugProducer(<wbr>StringRef S) { DwarfDebugProducer = S; }<br>
     StringRef getDwarfDebugProducer() { return DwarfDebugProducer; }<br>
+<br>
     dwarf::DwarfFormat getDwarfFormat() const {<br>
       // TODO: Support DWARF64<br>
       return dwarf::DWARF32;<br>
     }<br>
+<br>
     void setDwarfVersion(uint16_t v) { DwarfVersion = v; }<br>
     uint16_t getDwarfVersion() const { return DwarfVersion; }<br>
<br>
@@ -531,15 +550,18 @@ namespace llvm {<br>
<br>
     char *getSecureLogFile() { return SecureLogFile; }<br>
     raw_fd_ostream *getSecureLog() { return SecureLog.get(); }<br>
-    bool getSecureLogUsed() { return SecureLogUsed; }<br>
+<br>
     void setSecureLog(std::unique_ptr<<wbr>raw_fd_ostream> Value) {<br>
       SecureLog = std::move(Value);<br>
     }<br>
+<br>
+    bool getSecureLogUsed() { return SecureLogUsed; }<br>
     void setSecureLogUsed(bool Value) { SecureLogUsed = Value; }<br>
<br>
     void *allocate(unsigned Size, unsigned Align = 8) {<br>
       return Allocator.Allocate(Size, Align);<br>
     }<br>
+<br>
     void deallocate(void *Ptr) {}<br>
<br>
     bool hadError() { return HadError; }<br>
@@ -625,4 +647,4 @@ inline void operator delete[](void *Ptr,<br>
   C.deallocate(Ptr);<br>
 }<br>
<br>
-#endif<br>
+#endif // LLVM_MC_MCCONTEXT_H<br>
<br>
Modified: llvm/trunk/include/llvm/MC/<wbr>MCDwarf.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCDwarf.h?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/include/<wbr>llvm/MC/MCDwarf.h?rev=295009&<wbr>r1=295008&r2=295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/include/llvm/MC/<wbr>MCDwarf.h (original)<br>
+++ llvm/trunk/include/llvm/MC/<wbr>MCDwarf.h Mon Feb 13 18:33:36 2017<br>
@@ -16,24 +16,27 @@<br>
 #define LLVM_MC_MCDWARF_H<br>
<br>
 #include "llvm/ADT/MapVector.h"<br>
+#include "llvm/ADT/SmallVector.h"<br>
 #include "llvm/ADT/StringMap.h"<br>
 #include "llvm/ADT/StringRef.h"<br>
 #include "llvm/MC/MCSection.h"<br>
-#include "llvm/Support/Dwarf.h"<br>
+#include <cassert><br>
+#include <cstdint><br>
 #include <string><br>
 #include <utility><br>
 #include <vector><br>
<br>
 namespace llvm {<br>
+<br>
 template <typename T> class ArrayRef;<br>
-class raw_ostream;<br>
 class MCAsmBackend;<br>
 class MCContext;<br>
 class MCObjectStreamer;<br>
 class MCStreamer;<br>
 class MCSymbol;<br>
-class SourceMgr;<br>
+class raw_ostream;<br>
 class SMLoc;<br>
+class SourceMgr;<br>
<br>
 /// \brief Instances of this class represent the name of the dwarf<br>
 /// .file directive and its associated dwarf file number in the MC file,<br>
@@ -71,6 +74,7 @@ class MCDwarfLoc {<br>
 private: // MCContext manages these<br>
   friend class MCContext;<br>
   friend class MCDwarfLineEntry;<br>
+<br>
   MCDwarfLoc(unsigned fileNum, unsigned line, unsigned column, unsigned flags,<br>
              unsigned isa, unsigned discriminator)<br>
       : FileNum(fileNum), Line(line), Column(column), Flags(flags), Isa(isa),<br>
@@ -194,13 +198,14 @@ struct MCDwarfLineTableParams {<br>
 };<br>
<br>
 struct MCDwarfLineTableHeader {<br>
-  MCSymbol *Label;<br>
+  MCSymbol *Label = nullptr;<br>
   SmallVector<std::string, 3> MCDwarfDirs;<br>
   SmallVector<MCDwarfFile, 3> MCDwarfFiles;<br>
   StringMap<unsigned> SourceIdMap;<br>
   StringRef CompilationDir;<br>
<br>
-  MCDwarfLineTableHeader() : Label(nullptr) {}<br>
+  MCDwarfLineTableHeader() = default;<br>
+<br>
   unsigned getFile(StringRef &Directory, StringRef &FileName,<br>
                    unsigned FileNumber = 0);<br>
   std::pair<MCSymbol *, MCSymbol *> Emit(MCStreamer *MCOS,<br>
@@ -212,13 +217,16 @@ struct MCDwarfLineTableHeader {<br>
<br>
 class MCDwarfDwoLineTable {<br>
   MCDwarfLineTableHeader Header;<br>
+<br>
 public:<br>
   void setCompilationDir(StringRef CompilationDir) {<br>
     Header.CompilationDir = CompilationDir;<br>
   }<br>
+<br>
   unsigned getFile(StringRef Directory, StringRef FileName) {<br>
     return Header.getFile(Directory, FileName);<br>
   }<br>
+<br>
   void Emit(MCStreamer &MCOS, MCDwarfLineTableParams Params) const;<br>
 };<br>
<br>
@@ -488,22 +496,19 @@ public:<br>
 };<br>
<br>
 struct MCDwarfFrameInfo {<br>
-  MCDwarfFrameInfo()<br>
-      : Begin(nullptr), End(nullptr), Personality(nullptr), Lsda(nullptr),<br>
-        Instructions(), CurrentCfaRegister(0), PersonalityEncoding(),<br>
-        LsdaEncoding(0), CompactUnwindEncoding(0), IsSignalFrame(false),<br>
-        IsSimple(false) {}<br>
-  MCSymbol *Begin;<br>
-  MCSymbol *End;<br>
-  const MCSymbol *Personality;<br>
-  const MCSymbol *Lsda;<br>
+  MCDwarfFrameInfo() = default;<br>
+<br>
+  MCSymbol *Begin = nullptr;<br>
+  MCSymbol *End = nullptr;<br>
+  const MCSymbol *Personality = nullptr;<br>
+  const MCSymbol *Lsda = nullptr;<br>
   std::vector<MCCFIInstruction> Instructions;<br>
-  unsigned CurrentCfaRegister;<br>
+  unsigned CurrentCfaRegister = 0;<br>
   unsigned PersonalityEncoding;<br></blockquote><div><br></div><div>You forgot to initialize this to 0. IIUC default initialization (i.e. leaving POD types as uninitializes is not done as long as the variable is mentioned in the initializer list). Fixed in r295036.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-  unsigned LsdaEncoding;<br>
-  uint32_t CompactUnwindEncoding;<br>
-  bool IsSignalFrame;<br>
-  bool IsSimple;<br>
+  unsigned LsdaEncoding = 0;<br>
+  uint32_t CompactUnwindEncoding = 0;<br>
+  bool IsSignalFrame = false;<br>
+  bool IsSimple = false;<br>
 };<br>
<br>
 class MCDwarfFrameEmitter {<br>
@@ -516,6 +521,7 @@ public:<br>
   static void EncodeAdvanceLoc(MCContext &Context, uint64_t AddrDelta,<br>
                                raw_ostream &OS);<br>
 };<br>
+<br>
 } // end namespace llvm<br>
<br>
-#endif<br>
+#endif // LLVM_MC_MCDWARF_H<br>
<br>
Modified: llvm/trunk/include/llvm/MC/<wbr>MCSectionELF.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSectionELF.h?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/include/<wbr>llvm/MC/MCSectionELF.h?rev=<wbr>295009&r1=295008&r2=295009&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/include/llvm/MC/<wbr>MCSectionELF.h (original)<br>
+++ llvm/trunk/include/llvm/MC/<wbr>MCSectionELF.h Mon Feb 13 18:33:36 2017<br>
@@ -14,12 +14,10 @@<br>
 #ifndef LLVM_MC_MCSECTIONELF_H<br>
 #define LLVM_MC_MCSECTIONELF_H<br>
<br>
-#include "llvm/ADT/Twine.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
 #include "llvm/MC/MCSection.h"<br>
 #include "llvm/MC/MCSymbolELF.h"<br>
-#include "llvm/Support/Debug.h"<br>
-#include "llvm/Support/ELF.h"<br>
-#include "llvm/Support/raw_ostream.h"<br>
+#include "llvm/MC/SectionKind.h"<br>
<br>
 namespace llvm {<br>
<br>
@@ -52,6 +50,7 @@ class MCSectionELF final : public MCSect<br>
<br>
 private:<br>
   friend class MCContext;<br>
+<br>
   MCSectionELF(StringRef Section, unsigned type, unsigned flags, SectionKind K,<br>
                unsigned entrySize, const MCSymbolELF *group, unsigned UniqueID,<br>
                MCSymbol *Begin, const MCSectionELF *Associated)<br>
@@ -96,4 +95,4 @@ public:<br>
<br>
 } // end namespace llvm<br>
<br>
-#endif<br>
+#endif // LLVM_MC_MCSECTIONELF_H<br>
<br>
Modified: llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/AsmPrinter.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/<wbr>CodeGen/AsmPrinter/AsmPrinter.<wbr>cpp?rev=295009&r1=295008&r2=<wbr>295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/AsmPrinter.cpp (original)<br>
+++ llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/AsmPrinter.cpp Mon Feb 13 18:33:36 2017<br>
@@ -11,48 +11,100 @@<br>
 //<br>
 //===-------------------------<wbr>------------------------------<wbr>---------------===//<br>
<br>
-#include "llvm/CodeGen/AsmPrinter.h"<br>
+#include "AsmPrinterHandler.h"<br>
 #include "CodeViewDebug.h"<br>
 #include "DwarfDebug.h"<br>
 #include "DwarfException.h"<br>
 #include "WinException.h"<br>
+#include "llvm/ADT/APFloat.h"<br>
+#include "llvm/ADT/APInt.h"<br>
+#include "llvm/ADT/DenseMap.h"<br>
+#include "llvm/ADT/SmallPtrSet.h"<br>
+#include "llvm/ADT/SmallString.h"<br>
+#include "llvm/ADT/SmallVector.h"<br>
 #include "llvm/ADT/Statistic.h"<br>
+#include "llvm/ADT/STLExtras.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
+#include "llvm/ADT/Triple.h"<br>
+#include "llvm/ADT/Twine.h"<br>
 #include "llvm/Analysis/<wbr>ConstantFolding.h"<br>
 #include "llvm/CodeGen/Analysis.h"<br>
+#include "llvm/CodeGen/AsmPrinter.h"<br>
+#include "llvm/CodeGen/GCMetadata.h"<br>
 #include "llvm/CodeGen/<wbr>GCMetadataPrinter.h"<br>
+#include "llvm/CodeGen/GCStrategy.h"<br>
+#include "llvm/CodeGen/<wbr>MachineBasicBlock.h"<br>
 #include "llvm/CodeGen/<wbr>MachineConstantPool.h"<br>
 #include "llvm/CodeGen/<wbr>MachineFrameInfo.h"<br>
 #include "llvm/CodeGen/MachineFunction.<wbr>h"<br>
+#include "llvm/CodeGen/<wbr>MachineFunctionPass.h"<br>
+#include "llvm/CodeGen/MachineInstr.h"<br>
 #include "llvm/CodeGen/<wbr>MachineInstrBundle.h"<br>
 #include "llvm/CodeGen/<wbr>MachineJumpTableInfo.h"<br>
 #include "llvm/CodeGen/MachineLoopInfo.<wbr>h"<br>
+#include "llvm/CodeGen/<wbr>MachineMemOperand.h"<br>
 #include "llvm/CodeGen/<wbr>MachineModuleInfoImpls.h"<br>
+#include "llvm/CodeGen/MachineOperand.<wbr>h"<br>
+#include "llvm/IR/BasicBlock.h"<br>
+#include "llvm/IR/Constant.h"<br>
+#include "llvm/IR/Constants.h"<br>
 #include "llvm/IR/DataLayout.h"<br>
-#include "llvm/IR/DebugInfo.h"<br>
+#include "llvm/IR/DebugInfoMetadata.h"<br>
+#include "llvm/IR/DerivedTypes.h"<br>
+#include "llvm/IR/Function.h"<br>
+#include "llvm/IR/GlobalAlias.h"<br>
+#include "llvm/IR/GlobalIFunc.h"<br>
+#include "llvm/IR/GlobalIndirectSymbol.<wbr>h"<br>
+#include "llvm/IR/GlobalObject.h"<br>
+#include "llvm/IR/GlobalValue.h"<br>
+#include "llvm/IR/GlobalVariable.h"<br>
 #include "llvm/IR/Mangler.h"<br>
+#include "llvm/IR/Metadata.h"<br>
 #include "llvm/IR/Module.h"<br>
 #include "llvm/IR/Operator.h"<br>
+#include "llvm/IR/Value.h"<br>
 #include "llvm/MC/MCAsmInfo.h"<br>
 #include "llvm/MC/MCContext.h"<br>
+#include "llvm/MC/MCDirectives.h"<br>
 #include "llvm/MC/MCExpr.h"<br>
 #include "llvm/MC/MCInst.h"<br>
 #include "llvm/MC/MCSection.h"<br>
 #include "llvm/MC/MCSectionELF.h"<br>
 #include "llvm/MC/MCSectionMachO.h"<br>
 #include "llvm/MC/MCStreamer.h"<br>
-#include "llvm/MC/MCSymbolELF.h"<br>
+#include "llvm/MC/MCSubtargetInfo.h"<br>
+#include "llvm/MC/MCSymbol.h"<br>
+#include "llvm/MC/MCTargetOptions.h"<br>
 #include "llvm/MC/MCValue.h"<br>
+#include "llvm/MC/SectionKind.h"<br>
+#include "llvm/Pass.h"<br>
+#include "llvm/Support/Casting.h"<br>
+#include "llvm/Support/Compiler.h"<br>
+#include "llvm/Support/Dwarf.h"<br>
+#include "llvm/Support/ELF.h"<br>
 #include "llvm/Support/ErrorHandling.h"<br>
 #include "llvm/Support/Format.h"<br>
 #include "llvm/Support/MathExtras.h"<br>
+#include "llvm/Support/raw_ostream.h"<br>
 #include "llvm/Support/TargetRegistry.<wbr>h"<br>
 #include "llvm/Support/Timer.h"<br>
 #include "llvm/Target/<wbr>TargetFrameLowering.h"<br>
 #include "llvm/Target/TargetInstrInfo.<wbr>h"<br>
 #include "llvm/Target/TargetLowering.h"<br>
 #include "llvm/Target/<wbr>TargetLoweringObjectFile.h"<br>
+#include "llvm/Target/TargetMachine.h"<br>
 #include "llvm/Target/<wbr>TargetRegisterInfo.h"<br>
 #include "llvm/Target/<wbr>TargetSubtargetInfo.h"<br>
+#include <algorithm><br>
+#include <cassert><br>
+#include <cinttypes><br>
+#include <cstdint><br>
+#include <limits><br>
+#include <memory><br>
+#include <string><br>
+#include <utility><br>
+#include <vector><br>
+<br>
 using namespace llvm;<br>
<br>
 #define DEBUG_TYPE "asm-printer"<br>
@@ -78,7 +130,6 @@ static gcp_map_type &getGCMap(void *&P)<br>
   return *(gcp_map_type*)P;<br>
 }<br>
<br>
-<br>
 /// getGVAlignmentLog2 - Return the alignment to use for the specified global<br>
 /// value in log2 form.  This rounds up to the preferred alignment if possible<br>
 /// and legal.<br>
@@ -107,16 +158,7 @@ static unsigned getGVAlignmentLog2(const<br>
<br>
 AsmPrinter::AsmPrinter(<wbr>TargetMachine &tm, std::unique_ptr<MCStreamer> Streamer)<br>
     : MachineFunctionPass(ID), TM(tm), MAI(tm.getMCAsmInfo()),<br>
-      OutContext(Streamer-><wbr>getContext()), OutStreamer(std::move(<wbr>Streamer)),<br>
-      isCFIMoveForDebugging(false), LastMI(nullptr), LastFn(0), Counter(~0U) {<br>
-  DD = nullptr;<br>
-  MMI = nullptr;<br>
-  LI = nullptr;<br>
-  MF = nullptr;<br>
-  CurExceptionSym = CurrentFnSym = CurrentFnSymForSize = nullptr;<br>
-  CurrentFnBegin = nullptr;<br>
-  CurrentFnEnd = nullptr;<br>
-  GCMetadataPrinters = nullptr;<br>
+      OutContext(Streamer-><wbr>getContext()), OutStreamer(std::move(<wbr>Streamer)) {<br>
   VerboseAsm = OutStreamer->isVerboseAsm();<br>
 }<br>
<br>
@@ -1238,7 +1280,7 @@ bool AsmPrinter::doFinalization(<wbr>Module &<br>
         break;<br>
       AliasStack.push_back(Cur);<br>
     }<br>
-    for (const GlobalAlias *AncestorAlias : reverse(AliasStack))<br>
+    for (const GlobalAlias *AncestorAlias : llvm::reverse(AliasStack))<br>
       emitGlobalIndirectSymbol(M, *AncestorAlias);<br>
     AliasStack.clear();<br>
   }<br>
@@ -1316,14 +1358,17 @@ void AsmPrinter::<wbr>SetupMachineFunction(Ma<br>
 }<br>
<br>
 namespace {<br>
+<br>
 // Keep track the alignment, constpool entries per Section.<br>
   struct SectionCPs {<br>
     MCSection *S;<br>
     unsigned Alignment;<br>
     SmallVector<unsigned, 4> CPEs;<br>
+<br>
     SectionCPs(MCSection *s, unsigned a) : S(s), Alignment(a) {}<br>
   };<br>
-}<br>
+<br>
+} // end anonymous namespace<br>
<br>
 /// EmitConstantPool - Print to the current output stream assembly<br>
 /// representations of the constants in the constant pool MCP. This is<br>
@@ -1547,7 +1592,6 @@ void AsmPrinter::<wbr>EmitJumpTableEntry(cons<br>
   OutStreamer->EmitValue(Value, EntrySize);<br>
 }<br>
<br>
-<br>
 /// EmitSpecialLLVMGlobal - Check to see if the specified global is a<br>
 /// special global used by LLVM.  If so, emit it and return true, otherwise<br>
 /// do nothing and return false.<br>
@@ -1598,13 +1642,16 @@ void AsmPrinter::EmitLLVMUsedList(<wbr>const<br>
 }<br>
<br>
 namespace {<br>
+<br>
 struct Structor {<br>
-  Structor() : Priority(0), Func(nullptr), ComdatKey(nullptr) {}<br>
-  int Priority;<br>
-  llvm::Constant *Func;<br>
-  llvm::GlobalValue *ComdatKey;<br>
+  int Priority = 0;<br>
+  Constant *Func = nullptr;<br>
+  GlobalValue *ComdatKey = nullptr;<br>
+<br>
+  Structor() = default;<br>
 };<br>
-} // end namespace<br>
+<br>
+}  // end anonymous namespace<br>
<br>
 /// EmitXXStructorList - Emit the ctor or dtor list taking into account the init<br>
 /// priority.<br>
@@ -1934,7 +1981,6 @@ static int isRepeatedByteSequence(const<br>
   return static_cast<uint8_t>(C); // Ensure 255 is not returned as -1.<br>
 }<br>
<br>
-<br>
 /// isRepeatedByteSequence - Determine whether the given value is<br>
 /// composed of a repeated sequence of identical bytes and return the<br>
 /// byte value.  If it is not a repeated sequence, return -1.<br>
@@ -1975,7 +2021,6 @@ static int isRepeatedByteSequence(const<br>
 static void emitGlobalConstantDataSequenti<wbr>al(const DataLayout &DL,<br>
                                              const ConstantDataSequential *CDS,<br>
                                              AsmPrinter &AP) {<br>
-<br>
   // See if we can aggregate this into a .fill, if so, emit it as such.<br>
   int Value = isRepeatedByteSequence(CDS, DL);<br>
   if (Value != -1) {<br>
@@ -2009,7 +2054,6 @@ static void emitGlobalConstantDataSequen<br>
                         CDS->getNumElements();<br>
   if (unsigned Padding = Size - EmittedSize)<br>
     AP.OutStreamer->EmitZeros(<wbr>Padding);<br>
-<br>
 }<br>
<br>
 static void emitGlobalConstantArray(const DataLayout &DL,<br>
@@ -2423,8 +2467,6 @@ MCSymbol *AsmPrinter::<wbr>GetExternalSymbolS<br>
   return OutContext.getOrCreateSymbol(<wbr>NameStr);<br>
 }<br>
<br>
-<br>
-<br>
 /// PrintParentLoopComment - Print comments about parent loops of this one.<br>
 static void PrintParentLoopComment(raw_<wbr>ostream &OS, const MachineLoop *Loop,<br>
                                    unsigned FunctionNumber) {<br>
@@ -2489,7 +2531,6 @@ static void emitBasicBlockLoopComments(c<br>
   PrintChildLoopComment(OS, Loop, AP.getFunctionNumber());<br>
 }<br>
<br>
-<br>
 /// EmitBasicBlockStart - This method prints the label for the specified<br>
 /// MachineBasicBlock, an alignment (if present) and a comment describing<br>
 /// it if appropriate.<br>
@@ -2610,8 +2651,6 @@ isBlockOnlyReachableByFallthro<wbr>ugh(const<br>
   return true;<br>
 }<br>
<br>
-<br>
-<br>
 GCMetadataPrinter *AsmPrinter::<wbr>GetOrCreateGCPrinter(<wbr>GCStrategy &S) {<br>
   if (!S.usesMetadata())<br>
     return nullptr;<br>
@@ -2642,7 +2681,7 @@ GCMetadataPrinter *AsmPrinter::GetOrCrea<br>
 }<br>
<br>
 /// Pin vtable to this file.<br>
-AsmPrinterHandler::~<wbr>AsmPrinterHandler() {}<br>
+AsmPrinterHandler::~<wbr>AsmPrinterHandler() = default;<br>
<br>
 void AsmPrinterHandler::<wbr>markFunctionEnd() {}<br>
<br>
<br>
Modified: llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/ErlangGCPrinter.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/<wbr>CodeGen/AsmPrinter/<wbr>ErlangGCPrinter.cpp?rev=<wbr>295009&r1=295008&r2=295009&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/ErlangGCPrinter.cpp (original)<br>
+++ llvm/trunk/lib/CodeGen/<wbr>AsmPrinter/ErlangGCPrinter.cpp Mon Feb 13 18:33:36 2017<br>
@@ -1,4 +1,4 @@<br>
-//===-- ErlangGCPrinter.cpp - Erlang/OTP frametable emitter -----*- C++ -*-===//<br>
+//===- ErlangGCPrinter.cpp - Erlang/OTP frametable emitter ----------------===//<br>
 //<br>
 //                     The LLVM Compiler Infrastructure<br>
 //<br>
@@ -14,21 +14,19 @@<br>
 //===-------------------------<wbr>------------------------------<wbr>---------------===//<br>
<br>
 #include "llvm/CodeGen/AsmPrinter.h"<br>
+#include "llvm/CodeGen/GCMetadata.h"<br>
 #include "llvm/CodeGen/<wbr>GCMetadataPrinter.h"<br>
+#include "llvm/CodeGen/GCStrategy.h"<br>
 #include "llvm/CodeGen/GCs.h"<br>
 #include "llvm/IR/DataLayout.h"<br>
 #include "llvm/IR/Function.h"<br>
-#include "llvm/IR/Instruction.h"<br>
-#include "llvm/IR/IntrinsicInst.h"<br>
-#include "llvm/IR/Metadata.h"<br>
-#include "llvm/MC/MCAsmInfo.h"<br>
+#include "llvm/IR/Module.h"<br>
 #include "llvm/MC/MCContext.h"<br>
 #include "llvm/MC/MCSectionELF.h"<br>
 #include "llvm/MC/MCStreamer.h"<br>
 #include "llvm/MC/MCSymbol.h"<br>
-#include "llvm/Target/<wbr>TargetLoweringObjectFile.h"<br>
-#include "llvm/Target/TargetMachine.h"<br>
-#include "llvm/Target/<wbr>TargetSubtargetInfo.h"<br>
+#include "llvm/Target/<wbr>TargetLoweringObjectFile.h"<br>
+#include "llvm/Support/ELF.h"<br>
<br>
 using namespace llvm;<br>
<br>
@@ -38,13 +36,12 @@ class ErlangGCPrinter : public GCMetadat<br>
 public:<br>
   void finishAssembly(Module &M, GCModuleInfo &Info, AsmPrinter &AP) override;<br>
 };<br>
-}<br>
+<br>
+} // end anonymous namespace<br>
<br>
 static GCMetadataPrinterRegistry::<wbr>Add<ErlangGCPrinter><br>
     X("erlang", "erlang-compatible garbage collector");<br>
<br>
-void llvm::linkErlangGCPrinter() {}<br>
-<br>
 void ErlangGCPrinter::<wbr>finishAssembly(Module &M, GCModuleInfo &Info,<br>
                                      AsmPrinter &AP) {<br>
   MCStreamer &OS = *AP.OutStreamer;<br>
@@ -121,3 +118,5 @@ void ErlangGCPrinter::<wbr>finishAssembly(Mod<br>
     }<br>
   }<br>
 }<br>
+<br>
+void llvm::linkErlangGCPrinter() {}<br>
<br>
Modified: llvm/trunk/lib/MC/MCContext.<wbr>cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCContext.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/MC/<wbr>MCContext.cpp?rev=295009&r1=<wbr>295008&r2=295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/MC/MCContext.<wbr>cpp (original)<br>
+++ llvm/trunk/lib/MC/MCContext.<wbr>cpp Mon Feb 13 18:33:36 2017<br>
@@ -7,30 +7,41 @@<br>
 //<br>
 //===-------------------------<wbr>------------------------------<wbr>---------------===//<br>
<br>
-#include "llvm/MC/MCContext.h"<br>
 #include "llvm/ADT/SmallString.h"<br>
+#include "llvm/ADT/SmallVector.h"<br>
+#include "llvm/ADT/StringMap.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
 #include "llvm/ADT/Twine.h"<br>
 #include "llvm/MC/MCAsmInfo.h"<br>
-#include "llvm/MC/MCAssembler.h"<br>
 #include "llvm/MC/MCCodeView.h"<br>
+#include "llvm/MC/MCContext.h"<br>
 #include "llvm/MC/MCDwarf.h"<br>
+#include "llvm/MC/MCExpr.h"<br>
+#include "llvm/MC/MCFragment.h"<br>
 #include "llvm/MC/MCLabel.h"<br>
 #include "llvm/MC/MCObjectFileInfo.h"<br>
-#include "llvm/MC/MCRegisterInfo.h"<br>
 #include "llvm/MC/MCSectionCOFF.h"<br>
 #include "llvm/MC/MCSectionELF.h"<br>
 #include "llvm/MC/MCSectionMachO.h"<br>
 #include "llvm/MC/MCStreamer.h"<br>
+#include "llvm/MC/MCSymbol.h"<br>
 #include "llvm/MC/MCSymbolCOFF.h"<br>
 #include "llvm/MC/MCSymbolELF.h"<br>
 #include "llvm/MC/MCSymbolMachO.h"<br>
+#include "llvm/MC/SectionKind.h"<br>
+#include "llvm/Support/Casting.h"<br>
 #include "llvm/Support/COFF.h"<br>
 #include "llvm/Support/CommandLine.h"<br>
 #include "llvm/Support/ELF.h"<br>
 #include "llvm/Support/ErrorHandling.h"<br>
 #include "llvm/Support/MemoryBuffer.h"<br>
+#include "llvm/Support/raw_ostream.h"<br>
 #include "llvm/Support/Signals.h"<br>
 #include "llvm/Support/SourceMgr.h"<br>
+#include <cassert><br>
+#include <cstdlib><br>
+#include <tuple><br>
+#include <utility><br>
<br>
 using namespace llvm;<br>
<br>
@@ -40,19 +51,13 @@ AsSecureLogFileName("as-<wbr>secure-log-file-<br>
                  "AS_SECURE_LOG_FILE env variable)"),<br>
         cl::init(getenv("AS_SECURE_<wbr>LOG_FILE")), cl::Hidden);<br>
<br>
-<br>
 MCContext::MCContext(const MCAsmInfo *mai, const MCRegisterInfo *mri,<br>
                      const MCObjectFileInfo *mofi, const SourceMgr *mgr,<br>
                      bool DoAutoReset)<br>
-    : SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), Allocator(),<br>
-      Symbols(Allocator), UsedNames(Allocator),<br>
-      CurrentDwarfLoc(0, 0, 0, DWARF2_FLAG_IS_STMT, 0, 0), DwarfLocSeen(false),<br>
-      GenDwarfForAssembly(false), GenDwarfFileNumber(0), DwarfVersion(4),<br>
-      AllowTemporaryLabels(true), DwarfCompileUnitID(0),<br>
-      AutoReset(DoAutoReset), HadError(false) {<br>
+    : SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), Symbols(Allocator),<br>
+      UsedNames(Allocator), CurrentDwarfLoc(0, 0, 0, DWARF2_FLAG_IS_STMT, 0, 0),<br>
+      AutoReset(DoAutoReset) {<br>
   SecureLogFile = AsSecureLogFileName;<br>
-  SecureLog = nullptr;<br>
-  SecureLogUsed = false;<br>
<br>
   if (SrcMgr && SrcMgr->getNumBuffers())<br>
     MainFileName =<br>
@@ -169,7 +174,7 @@ MCSymbol *MCContext::createSymbol(<wbr>String<br>
   SmallString<128> NewName = Name;<br>
   bool AddSuffix = AlwaysAddSuffix;<br>
   unsigned &NextUniqueID = NextID[Name];<br>
-  for (;;) {<br>
+  while (true) {<br>
     if (AddSuffix) {<br>
       NewName.resize(Name.size());<br>
       raw_svector_ostream(NewName) << NextUniqueID++;<br>
@@ -262,7 +267,6 @@ MCSectionMachO *MCContext::getMachOSecti<br>
                                            unsigned TypeAndAttributes,<br>
                                            unsigned Reserved2, SectionKind Kind,<br>
                                            const char *BeginSymName) {<br>
-<br>
   // We unique sections by their segment/section pair.  The returned section<br>
   // may not have the same flags as the requested section, if so this should be<br>
   // diagnosed by the client as an error.<br>
@@ -309,7 +313,6 @@ MCSectionELF *MCContext::createELFSectio<br>
                                               const MCSymbolELF *Group,<br>
                                               unsigned UniqueID,<br>
                                               const MCSectionELF *Associated) {<br>
-<br>
   MCSymbolELF *R;<br>
   MCSymbol *&Sym = Symbols[Section];<br>
   if (Sym && Sym->isUndefined()) {<br>
<br>
Modified: llvm/trunk/lib/MC/MCDwarf.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/MC/<wbr>MCDwarf.cpp?rev=295009&r1=<wbr>295008&r2=295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)<br>
+++ llvm/trunk/lib/MC/MCDwarf.cpp Mon Feb 13 18:33:36 2017<br>
@@ -7,27 +7,41 @@<br>
 //<br>
 //===-------------------------<wbr>------------------------------<wbr>---------------===//<br>
<br>
-#include "llvm/MC/MCDwarf.h"<br>
+#include "llvm/ADT/ArrayRef.h"<br>
+#include "llvm/ADT/DenseMap.h"<br>
 #include "llvm/ADT/Hashing.h"<br>
-#include "llvm/ADT/STLExtras.h"<br>
+#include "llvm/ADT/None.h"<br>
 #include "llvm/ADT/SmallString.h"<br>
+#include "llvm/ADT/SmallVector.h"<br>
+#include "llvm/ADT/STLExtras.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
 #include "llvm/ADT/Twine.h"<br>
 #include "llvm/Config/config.h"<br>
 #include "llvm/MC/MCAsmInfo.h"<br>
 #include "llvm/MC/MCContext.h"<br>
+#include "llvm/MC/MCDwarf.h"<br>
 #include "llvm/MC/MCExpr.h"<br>
 #include "llvm/MC/MCObjectFileInfo.h"<br>
 #include "llvm/MC/MCObjectStreamer.h"<br>
 #include "llvm/MC/MCRegisterInfo.h"<br>
 #include "llvm/MC/MCSection.h"<br>
+#include "llvm/MC/MCStreamer.h"<br>
 #include "llvm/MC/MCSymbol.h"<br>
-#include "llvm/Support/Debug.h"<br>
+#include "llvm/Support/Casting.h"<br>
+#include "llvm/Support/Dwarf.h"<br>
+#include "llvm/Support/Endian.h"<br>
 #include "llvm/Support/EndianStream.h"<br>
 #include "llvm/Support/ErrorHandling.h"<br>
 #include "llvm/Support/LEB128.h"<br>
+#include "llvm/Support/MathExtras.h"<br>
 #include "llvm/Support/Path.h"<br>
 #include "llvm/Support/SourceMgr.h"<br>
 #include "llvm/Support/raw_ostream.h"<br>
+#include <cassert><br>
+#include <cstdint><br>
+#include <string><br>
+#include <utility><br>
+#include <vector><br>
<br>
 using namespace llvm;<br>
<br>
@@ -592,7 +606,6 @@ static void EmitGenDwarfAranges(MCStream<br>
   // And the pair of terminating zeros.<br>
   Length += 2 * AddrSize;<br>
<br>
-<br>
   // Emit the header for this section.<br>
   // The 4 byte length not including the 4 byte value for the length.<br>
   MCOS->EmitIntValue(Length - 4, 4);<br>
@@ -885,7 +898,7 @@ void MCGenDwarfInfo::Emit(<wbr>MCStreamer *MC<br>
     }<br>
   }<br>
<br>
-  assert((RangesSectionSymbol != NULL) || !UseRangesSection);<br>
+  assert((RangesSectionSymbol != nullptr) || !UseRangesSection);<br>
<br>
   MCOS->SwitchSection(context.<wbr>getObjectFileInfo()-><wbr>getDwarfARangesSection());<br>
<br>
@@ -1003,6 +1016,7 @@ static void EmitPersonality(MCStreamer &<br>
 }<br>
<br>
 namespace {<br>
+<br>
 class FrameEmitterImpl {<br>
   int CFAOffset = 0;<br>
   int InitialCFAOffset = 0;<br>
@@ -1050,10 +1064,10 @@ void FrameEmitterImpl::<wbr>EmitCFIInstructio<br>
     Streamer.EmitULEB128IntValue(<wbr>Reg2);<br>
     return;<br>
   }<br>
-  case MCCFIInstruction::<wbr>OpWindowSave: {<br>
+  case MCCFIInstruction::<wbr>OpWindowSave:<br>
     Streamer.EmitIntValue(dwarf::<wbr>DW_CFA_GNU_window_save, 1);<br>
     return;<br>
-  }<br>
+<br>
   case MCCFIInstruction::OpUndefined: {<br>
     unsigned Reg = Instr.getRegister();<br>
     Streamer.EmitIntValue(dwarf::<wbr>DW_CFA_undefined, 1);<br>
@@ -1087,7 +1101,6 @@ void FrameEmitterImpl::<wbr>EmitCFIInstructio<br>
<br>
     return;<br>
   }<br>
-<br>
   case MCCFIInstruction::<wbr>OpDefCfaRegister: {<br>
     unsigned Reg = Instr.getRegister();<br>
     if (!IsEH)<br>
@@ -1097,7 +1110,6 @@ void FrameEmitterImpl::<wbr>EmitCFIInstructio<br>
<br>
     return;<br>
   }<br>
-<br>
   case MCCFIInstruction::OpOffset:<br>
   case MCCFIInstruction::OpRelOffset: {<br>
     const bool IsRelative =<br>
@@ -1145,11 +1157,11 @@ void FrameEmitterImpl::<wbr>EmitCFIInstructio<br>
     Streamer.EmitIntValue(dwarf::<wbr>DW_CFA_restore | Reg, 1);<br>
     return;<br>
   }<br>
-  case MCCFIInstruction::<wbr>OpGnuArgsSize: {<br>
+  case MCCFIInstruction::<wbr>OpGnuArgsSize:<br>
     Streamer.EmitIntValue(dwarf::<wbr>DW_CFA_GNU_args_size, 1);<br>
     Streamer.EmitULEB128IntValue(<wbr>Instr.getOffset());<br>
     return;<br>
-  }<br>
+<br>
   case MCCFIInstruction::OpEscape:<br>
     Streamer.EmitBytes(Instr.<wbr>getValues());<br>
     return;<br>
@@ -1444,10 +1456,12 @@ void FrameEmitterImpl::EmitFDE(<wbr>const MCS<br>
 }<br>
<br>
 namespace {<br>
+<br>
 struct CIEKey {<br>
   static const CIEKey getEmptyKey() {<br>
     return CIEKey(nullptr, 0, -1, false, false);<br>
   }<br>
+<br>
   static const CIEKey getTombstoneKey() {<br>
     return CIEKey(nullptr, -1, 0, false, false);<br>
   }<br>
@@ -1457,23 +1471,28 @@ struct CIEKey {<br>
       : Personality(Personality), PersonalityEncoding(<wbr>PersonalityEncoding),<br>
         LsdaEncoding(LsdaEncoding), IsSignalFrame(IsSignalFrame),<br>
         IsSimple(IsSimple) {}<br>
+<br>
   const MCSymbol *Personality;<br>
   unsigned PersonalityEncoding;<br>
   unsigned LsdaEncoding;<br>
   bool IsSignalFrame;<br>
   bool IsSimple;<br>
 };<br>
-} // anonymous namespace<br>
+<br>
+} // end anonymous namespace<br>
<br>
 namespace llvm {<br>
+<br>
 template <> struct DenseMapInfo<CIEKey> {<br>
   static CIEKey getEmptyKey() { return CIEKey::getEmptyKey(); }<br>
   static CIEKey getTombstoneKey() { return CIEKey::getTombstoneKey(); }<br>
+<br>
   static unsigned getHashValue(const CIEKey &Key) {<br>
     return static_cast<unsigned>(<br>
         hash_combine(Key.Personality, Key.PersonalityEncoding, Key.LsdaEncoding,<br>
                      Key.IsSignalFrame, Key.IsSimple));<br>
   }<br>
+<br>
   static bool isEqual(const CIEKey &LHS, const CIEKey &RHS) {<br>
     return LHS.Personality == RHS.Personality &&<br>
            LHS.PersonalityEncoding == RHS.PersonalityEncoding &&<br>
@@ -1482,7 +1501,8 @@ template <> struct DenseMapInfo<CIEKey><br>
            LHS.IsSimple == RHS.IsSimple;<br>
   }<br>
 };<br>
-} // namespace llvm<br>
+<br>
+} // end namespace llvm<br>
<br>
 void MCDwarfFrameEmitter::Emit(<wbr>MCObjectStreamer &Streamer, MCAsmBackend *MAB,<br>
                                bool IsEH) {<br>
<br>
Modified: llvm/trunk/lib/MC/<wbr>MCObjectFileInfo.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/MC/<wbr>MCObjectFileInfo.cpp?rev=<wbr>295009&r1=295008&r2=295009&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/MC/<wbr>MCObjectFileInfo.cpp (original)<br>
+++ llvm/trunk/lib/MC/<wbr>MCObjectFileInfo.cpp Mon Feb 13 18:33:36 2017<br>
@@ -17,6 +17,7 @@<br>
 #include "llvm/MC/MCSectionELF.h"<br>
 #include "llvm/MC/MCSectionMachO.h"<br>
 #include "llvm/Support/COFF.h"<br>
+#include "llvm/Support/ELF.h"<br>
<br>
 using namespace llvm;<br>
<br>
<br>
Modified: llvm/trunk/lib/MC/<wbr>MCSectionELF.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCSectionELF.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/MC/<wbr>MCSectionELF.cpp?rev=295009&<wbr>r1=295008&r2=295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/MC/<wbr>MCSectionELF.cpp (original)<br>
+++ llvm/trunk/lib/MC/<wbr>MCSectionELF.cpp Mon Feb 13 18:33:36 2017<br>
@@ -7,23 +7,22 @@<br>
 //<br>
 //===-------------------------<wbr>------------------------------<wbr>---------------===//<br>
<br>
-#include "llvm/MC/MCSectionELF.h"<br>
+#include "llvm/ADT/Triple.h"<br>
 #include "llvm/MC/MCAsmInfo.h"<br>
-#include "llvm/MC/MCContext.h"<br>
 #include "llvm/MC/MCExpr.h"<br>
-#include "llvm/MC/MCSymbol.h"<br>
+#include "llvm/MC/MCSectionELF.h"<br>
 #include "llvm/Support/ELF.h"<br>
 #include "llvm/Support/raw_ostream.h"<br>
+#include <cassert><br>
<br>
 using namespace llvm;<br>
<br>
-MCSectionELF::~MCSectionELF() {} // anchor.<br>
+MCSectionELF::~MCSectionELF() = default; // anchor.<br>
<br>
 // Decides whether a '.section' directive<br>
 // should be printed before the section name.<br>
 bool MCSectionELF::<wbr>ShouldOmitSectionDirective(<wbr>StringRef Name,<br>
                                               const MCAsmInfo &MAI) const {<br>
-<br>
   if (isUnique())<br>
     return false;<br>
<br>
@@ -56,7 +55,6 @@ static void printName(raw_ostream &OS, S<br>
 void MCSectionELF::<wbr>PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T,<br>
                                         raw_ostream &OS,<br>
                                         const MCExpr *Subsection) const {<br>
-<br>
   if (ShouldOmitSectionDirective(<wbr>SectionName, MAI)) {<br>
     OS << '\t' << getSectionName();<br>
     if (Subsection) {<br>
<br>
Modified: llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/Target/<wbr>AMDGPU/Utils/AMDGPUBaseInfo.<wbr>cpp?rev=295009&r1=295008&r2=<wbr>295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.cpp (original)<br>
+++ llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.cpp Mon Feb 13 18:33:36 2017<br>
@@ -1,4 +1,4 @@<br>
-//===-- AMDGPUBaseInfo.cpp - AMDGPU Base encoding information--------------===//<br>
+//===- AMDGPUBaseInfo.cpp - AMDGPU Base encoding information --------------===//<br>
 //<br>
 //                     The LLVM Compiler Infrastructure<br>
 //<br>
@@ -6,20 +6,34 @@<br>
 // License. See LICENSE.TXT for details.<br>
 //<br>
 //===-------------------------<wbr>------------------------------<wbr>---------------===//<br>
-#include "AMDGPUBaseInfo.h"<br>
+<br>
 #include "AMDGPU.h"<br>
+#include "AMDGPUBaseInfo.h"<br>
 #include "SIDefines.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
+#include "llvm/ADT/Triple.h"<br>
 #include "llvm/CodeGen/<wbr>MachineMemOperand.h"<br>
+#include "llvm/IR/Attributes.h"<br>
 #include "llvm/IR/Constants.h"<br>
 #include "llvm/IR/Function.h"<br>
 #include "llvm/IR/GlobalValue.h"<br>
+#include "llvm/IR/Instruction.h"<br>
 #include "llvm/IR/LLVMContext.h"<br>
 #include "llvm/MC/MCContext.h"<br>
-#include "llvm/MC/MCInstrInfo.h"<br>
+#include "llvm/MC/MCInstrDesc.h"<br>
 #include "llvm/MC/MCRegisterInfo.h"<br>
 #include "llvm/MC/MCSectionELF.h"<br>
 #include "llvm/MC/MCSubtargetInfo.h"<br>
 #include "llvm/MC/SubtargetFeature.h"<br>
+#include "llvm/Support/Casting.h"<br>
+#include "llvm/Support/ELF.h"<br>
+#include "llvm/Support/ErrorHandling.h"<br>
+#include "llvm/Support/MathExtras.h"<br>
+#include <algorithm><br>
+#include <cassert><br>
+#include <cstdint><br>
+#include <cstring><br>
+#include <utility><br>
<br>
 #define GET_SUBTARGETINFO_ENUM<br>
 #include "AMDGPUGenSubtargetInfo.inc"<br>
@@ -76,7 +90,7 @@ unsigned getLgkmcntBitShift() { return 8<br>
 /// \returns Lgkmcnt bit width.<br>
 unsigned getLgkmcntBitWidth() { return 4; }<br>
<br>
-} // namespace anonymous<br>
+} // end namespace anonymous<br>
<br>
 namespace llvm {<br>
 namespace AMDGPU {<br>
@@ -268,7 +282,7 @@ unsigned getMaxNumVGPRs(const FeatureBit<br>
   return std::min(MaxNumVGPRs, AddressableNumVGPRs);<br>
 }<br>
<br>
-} // namespace IsaInfo<br>
+} // end namespace IsaInfo<br>
<br>
 void initDefaultAMDKernelCodeT(amd_<wbr>kernel_code_t &Header,<br>
                                const FeatureBitset &Features) {<br>
@@ -371,7 +385,7 @@ std::pair<int, int> getIntegerPairAttrib<br>
     return Default;<br>
   }<br>
   if (Strs.second.trim().<wbr>getAsInteger(0, Ints.second)) {<br>
-    if (!OnlyFirstRequired || Strs.second.trim().size()) {<br>
+    if (!OnlyFirstRequired || !Strs.second.trim().empty()) {<br>
       Ctx.emitError("can't parse second integer attribute " + Name);<br>
       return Default;<br>
     }<br>
@@ -655,5 +669,5 @@ bool isLegalSMRDImmOffset(const MCSubtar<br>
                                 isUInt<20>(EncodedOffset);<br>
 }<br>
<br>
-} // End namespace AMDGPU<br>
-} // End namespace llvm<br>
+} // end namespace AMDGPU<br>
+} // end namespace llvm<br>
<br>
Modified: llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/Target/<wbr>AMDGPU/Utils/AMDGPUBaseInfo.h?<wbr>rev=295009&r1=295008&r2=<wbr>295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.h (original)<br>
+++ llvm/trunk/lib/Target/AMDGPU/<wbr>Utils/AMDGPUBaseInfo.h Mon Feb 13 18:33:36 2017<br>
@@ -1,4 +1,4 @@<br>
-//===-- AMDGPUBaseInfo.h - Top level definitions for AMDGPU -----*- C++ -*-===//<br>
+//===- AMDGPUBaseInfo.h - Top level definitions for AMDGPU ------*- C++ -*-===//<br>
 //<br>
 //                     The LLVM Compiler Infrastructure<br>
 //<br>
@@ -11,9 +11,14 @@<br>
 #define LLVM_LIB_TARGET_AMDGPU_UTILS_<wbr>AMDGPUBASEINFO_H<br>
<br>
 #include "AMDKernelCodeT.h"<br>
-#include "llvm/IR/CallingConv.h"<br>
-<br>
 #include "SIDefines.h"<br>
+#include "llvm/ADT/StringRef.h"<br>
+#include "llvm/IR/CallingConv.h"<br>
+#include "llvm/MC/MCInstrDesc.h"<br>
+#include "llvm/Support/Compiler.h"<br>
+#include "llvm/Support/ErrorHandling.h"<br>
+#include <cstdint><br>
+#include <utility><br>
<br>
 #define GET_INSTRINFO_OPERAND_ENUM<br>
 #include "AMDGPUGenInstrInfo.inc"<br>
@@ -26,14 +31,13 @@ class Function;<br>
 class GlobalValue;<br>
 class MachineMemOperand;<br>
 class MCContext;<br>
-class MCInstrDesc;<br>
 class MCRegisterClass;<br>
 class MCRegisterInfo;<br>
 class MCSection;<br>
 class MCSubtargetInfo;<br>
+class Triple;<br>
<br>
 namespace AMDGPU {<br>
-<br>
 namespace IsaInfo {<br>
<br>
 enum {<br>
@@ -141,7 +145,7 @@ unsigned getMinNumVGPRs(const FeatureBit<br>
 /// execution unit requirement for given subtarget \p Features.<br>
 unsigned getMaxNumVGPRs(const FeatureBitset &Features, unsigned WavesPerEU);<br>
<br>
-} // namespace IsaInfo<br>
+} // end namespace IsaInfo<br>
<br>
 LLVM_READONLY<br>
 int16_t getNamedOperandIdx(uint16_t Opcode, uint16_t NamedIdx);<br>
@@ -330,4 +334,4 @@ bool isLegalSMRDImmOffset(const MCSubtar<br>
 } // end namespace AMDGPU<br>
 } // end namespace llvm<br>
<br>
-#endif<br>
+#endif // LLVM_LIB_TARGET_AMDGPU_UTILS_<wbr>AMDGPUBASEINFO_H<br>
<br>
Modified: llvm/trunk/lib/Target/Mips/<wbr>MCTargetDesc/MipsOptionRecord.<wbr>cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/Target/<wbr>Mips/MCTargetDesc/<wbr>MipsOptionRecord.cpp?rev=<wbr>295009&r1=295008&r2=295009&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Target/Mips/<wbr>MCTargetDesc/MipsOptionRecord.<wbr>cpp (original)<br>
+++ llvm/trunk/lib/Target/Mips/<wbr>MCTargetDesc/MipsOptionRecord.<wbr>cpp Mon Feb 13 18:33:36 2017<br>
@@ -1,4 +1,4 @@<br>
-//===-- MipsOptionRecord.cpp - Abstraction for storing information --------===//<br>
+//===- MipsOptionRecord.cpp - Abstraction for storing information ---------===//<br>
 //<br>
 //                     The LLVM Compiler Infrastructure<br>
 //<br>
@@ -7,10 +7,16 @@<br>
 //<br>
 //===-------------------------<wbr>------------------------------<wbr>---------------===//<br>
<br>
-#include "MipsOptionRecord.h"<br>
+#include "MipsABIInfo.h"<br>
 #include "MipsELFStreamer.h"<br>
+#include "MipsOptionRecord.h"<br>
 #include "MipsTargetStreamer.h"<br>
+#include "llvm/MC/MCAssembler.h"<br>
+#include "llvm/MC/MCContext.h"<br>
+#include "llvm/MC/MCRegisterInfo.h"<br>
 #include "llvm/MC/MCSectionELF.h"<br>
+#include "llvm/Support/ELF.h"<br>
+#include <cassert><br>
<br>
 using namespace llvm;<br>
<br>
<br>
Modified: llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.<wbr>cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/Target/<wbr>Sparc/MCTargetDesc/<wbr>SparcMCAsmInfo.cpp?rev=295009&<wbr>r1=295008&r2=295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.<wbr>cpp (original)<br>
+++ llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.<wbr>cpp Mon Feb 13 18:33:36 2017<br>
@@ -1,4 +1,4 @@<br>
-//===-- SparcMCAsmInfo.cpp - Sparc asm properties -------------------------===//<br>
+//===- SparcMCAsmInfo.cpp - Sparc asm properties --------------------------===/<wbr>/<br>
 //<br>
 //                     The LLVM Compiler Infrastructure<br>
 //<br>
@@ -14,7 +14,10 @@<br>
 #include "SparcMCAsmInfo.h"<br>
 #include "SparcMCExpr.h"<br>
 #include "llvm/ADT/Triple.h"<br>
+#include "llvm/MC/MCExpr.h"<br>
 #include "llvm/MC/MCStreamer.h"<br>
+#include "llvm/MC/MCTargetOptions.h"<br>
+#include "llvm/Support/Dwarf.h"<br>
<br>
 using namespace llvm;<br>
<br>
<br>
Modified: llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.h?rev=295009&r1=295008&r2=295009&view=diff" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/lib/Target/<wbr>Sparc/MCTargetDesc/<wbr>SparcMCAsmInfo.h?rev=295009&<wbr>r1=295008&r2=295009&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.h (original)<br>
+++ llvm/trunk/lib/Target/Sparc/<wbr>MCTargetDesc/SparcMCAsmInfo.h Mon Feb 13 18:33:36 2017<br>
@@ -1,4 +1,4 @@<br>
-//===-- SparcMCAsmInfo.h - Sparc asm properties ----------------*- C++ -*--===//<br>
+//===- SparcMCAsmInfo.h - Sparc asm properties -----------------*- C++ -*--===//<br>
 //<br>
 //                     The LLVM Compiler Infrastructure<br>
 //<br>
@@ -17,6 +17,7 @@<br>
 #include "llvm/MC/MCAsmInfoELF.h"<br>
<br>
 namespace llvm {<br>
+<br>
 class Triple;<br>
<br>
 class SparcELFMCAsmInfo : public MCAsmInfoELF {<br>
@@ -24,6 +25,7 @@ class SparcELFMCAsmInfo : public MCAsmIn<br>
<br>
 public:<br>
   explicit SparcELFMCAsmInfo(const Triple &TheTriple);<br>
+<br>
   const MCExpr*<br>
   getExprForPersonalitySymbol(<wbr>const MCSymbol *Sym, unsigned Encoding,<br>
                               MCStreamer &Streamer) const override;<br>
@@ -33,6 +35,6 @@ public:<br>
<br>
 };<br>
<br>
-} // namespace llvm<br>
+} // end namespace llvm<br>
<br>
-#endif<br>
+#endif // LLVM_LIB_TARGET_SPARC_<wbr>MCTARGETDESC_SPARCMCASMINFO_H<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" class="gmail-cremed cremed">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank" class="gmail-cremed cremed">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>