DebugInfo: TargetOptions/MCAsmInfo support for compressed debug info sections
[oota-llvm.git] / lib / CodeGen / LLVMTargetMachine.cpp
index 77f8377d9be901a35c2e698271b52ae78d767a56..9c2718be7f2868414e520e21238fe188913b5293 100644 (file)
@@ -75,6 +75,9 @@ void LLVMTargetMachine::initAsmInfo() {
   if (Options.DisableIntegratedAS)
     TmpAsmInfo->setUseIntegratedAssembler(false);
 
+  if (Options.CompressDebugSections)
+    TmpAsmInfo->setCompressDebugSections(true);
+
   AsmInfo = TmpAsmInfo;
 }