Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(319)

Side by Side Diff: lib/CodeGen/CodeGenModule.cpp

Issue 6114059: Use enum to set size of debug info generated by Clang" (Closed) Base URL: https://llvm.org/svn/llvm-project/cfe/trunk/
Patch Set: Created 12 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===--- CodeGenModule.cpp - Emit LLVM Code from ASTs for a Module --------===// 1 //===--- CodeGenModule.cpp - Emit LLVM Code from ASTs for a Module --------===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This coordinates the per-module state used while generating code. 10 // This coordinates the per-module state used while generating code.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 createCUDARuntime(); 103 createCUDARuntime();
104 104
105 // Enable TBAA unless it's suppressed. ThreadSanitizer needs TBAA even at O0. 105 // Enable TBAA unless it's suppressed. ThreadSanitizer needs TBAA even at O0.
106 if (LangOpts.ThreadSanitizer || 106 if (LangOpts.ThreadSanitizer ||
107 (!CodeGenOpts.RelaxedAliasing && CodeGenOpts.OptimizationLevel > 0)) 107 (!CodeGenOpts.RelaxedAliasing && CodeGenOpts.OptimizationLevel > 0))
108 TBAA = new CodeGenTBAA(Context, VMContext, CodeGenOpts, getLangOpts(), 108 TBAA = new CodeGenTBAA(Context, VMContext, CodeGenOpts, getLangOpts(),
109 ABI.getMangleContext()); 109 ABI.getMangleContext());
110 110
111 // If debug info or coverage generation is enabled, create the CGDebugInfo 111 // If debug info or coverage generation is enabled, create the CGDebugInfo
112 // object. 112 // object.
113 if (CodeGenOpts.DebugInfo || CodeGenOpts.EmitGcovArcs || 113 if (CodeGenOpts.DebugInfo != CodeGenOptions::NoDebugInfo ||
114 CodeGenOpts.EmitGcovArcs ||
114 CodeGenOpts.EmitGcovNotes) 115 CodeGenOpts.EmitGcovNotes)
115 DebugInfo = new CGDebugInfo(*this); 116 DebugInfo = new CGDebugInfo(*this);
116 117
117 Block.GlobalUniqueCount = 0; 118 Block.GlobalUniqueCount = 0;
118 119
119 if (C.getLangOpts().ObjCAutoRefCount) 120 if (C.getLangOpts().ObjCAutoRefCount)
120 ARCData = new ARCEntrypoints(); 121 ARCData = new ARCEntrypoints();
121 RRData = new RREntrypoints(); 122 RRData = new RREntrypoints();
122 } 123 }
123 124
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 llvm::MDString::get(Ctx, getCodeGenOpts().CoverageFile); 2660 llvm::MDString::get(Ctx, getCodeGenOpts().CoverageFile);
2660 for (int i = 0, e = CUNode->getNumOperands(); i != e; ++i) { 2661 for (int i = 0, e = CUNode->getNumOperands(); i != e; ++i) {
2661 llvm::MDNode *CU = CUNode->getOperand(i); 2662 llvm::MDNode *CU = CUNode->getOperand(i);
2662 llvm::Value *node[] = { CoverageFile, CU }; 2663 llvm::Value *node[] = { CoverageFile, CU };
2663 llvm::MDNode *N = llvm::MDNode::get(Ctx, node); 2664 llvm::MDNode *N = llvm::MDNode::get(Ctx, node);
2664 GCov->addOperand(N); 2665 GCov->addOperand(N);
2665 } 2666 }
2666 } 2667 }
2667 } 2668 }
2668 } 2669 }
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b