add a comment about where this should eventually move.
authorChris Lattner <sabre@nondot.org>
Sun, 5 Sep 2010 20:33:40 +0000 (20:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 5 Sep 2010 20:33:40 +0000 (20:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113117 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index d358ab20ffc53d42103bb6acfc67ea92cb0345bb..ee6d321763ab227aa27d7499ae4d2f481830c5ad 100644 (file)
@@ -327,6 +327,13 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
   // Handle thread local data for mach-o which requires us to output an
   // additional structure of data and mangle the original symbol so that we
   // can reference it later.
+  //
+  // TODO: This should become an "emit thread local global" method on TLOF.
+  // All of this macho specific stuff should be sunk down into TLOFMachO and
+  // stuff like "TLSExtraDataSection" should no longer be part of the parent
+  // TLOF class.  This will also make it more obvious that stuff like
+  // MCStreamer::EmitTBSSSymbol is macho specific and only called from macho
+  // specific code.
   if (GVKind.isThreadLocal() && MAI->hasMachoTBSSDirective()) {
     // Emit the .tbss symbol
     MCSymbol *MangSym =