X86: refactor export directive generation
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 4 May 2014 00:03:41 +0000 (00:03 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 4 May 2014 00:03:41 +0000 (00:03 +0000)
commit6f0d4e358fda7fd7c95106c49b650f1d78000f79
tree78689fc94097d74c298baa049ad05b5ae05d3a00
parentb3428a05a021bf067f70cd5363b70833f962c14f
X86: refactor export directive generation

Create a helper function to generate the export directive.  This was previously
duplicated inline to handle export directives for variables and functions.  This
also enables the use of range-based iterators for the generation of the
directive rather than the traditional loops.  NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207925 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86AsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.h