diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-05 20:33:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-05 20:33:40 +0000 |
commit | 419d0aa0edbe9ff140ee4f5bf568f3e3d6713484 (patch) | |
tree | 965a8fd7c526c43d8e2aa737e6b342037a5a1b9f | |
parent | 5cac0f71ca80b03dffc46a42fd7accc0090f62bf (diff) | |
download | bcm5719-llvm-419d0aa0edbe9ff140ee4f5bf568f3e3d6713484.tar.gz bcm5719-llvm-419d0aa0edbe9ff140ee4f5bf568f3e3d6713484.zip |
add a comment about where this should eventually move.
llvm-svn: 113117
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index d358ab20ffc..ee6d321763a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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 = |