Update comment about initializing TLOF with a pointer at the previous
authorEric Christopher <echristo@gmail.com>
Thu, 29 Sep 2016 02:03:47 +0000 (02:03 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 29 Sep 2016 02:03:47 +0000 (02:03 +0000)
line or the other commented out place.

llvm-svn: 282673

llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp

index c5602d5..5d94d5e 100644 (file)
@@ -844,7 +844,9 @@ bool NVPTXAsmPrinter::doInitialization(Module &M) {
   // We need to call the parent's one explicitly.
   //bool Result = AsmPrinter::doInitialization(M);
 
-  // Initialize TargetLoweringObjectFile.
+  // Initialize TargetLoweringObjectFile since we didn't do in
+  // AsmPrinter::doInitialization either right above or where it's commented out
+  // below.
   const_cast<TargetLoweringObjectFile &>(getObjFileLowering())
       .Initialize(OutContext, TM);