mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Remove DIBuilder cache of variable TheCU and change the few
uses that wanted it. Also change the interface for createCompileUnit to compensate. Fix comments that refer to TheCU as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -29,6 +29,7 @@ namespace llvm {
|
||||
class MDNode;
|
||||
class StringRef;
|
||||
class DIBasicType;
|
||||
class DICompileUnit;
|
||||
class DICompositeType;
|
||||
class DIDerivedType;
|
||||
class DIDescriptor;
|
||||
@ -53,7 +54,6 @@ namespace llvm {
|
||||
private:
|
||||
Module &M;
|
||||
LLVMContext & VMContext;
|
||||
MDNode *TheCU;
|
||||
|
||||
MDNode *TempEnumTypes;
|
||||
MDNode *TempRetainTypes;
|
||||
@ -81,7 +81,6 @@ namespace llvm {
|
||||
|
||||
public:
|
||||
explicit DIBuilder(Module &M);
|
||||
const MDNode *getCU() { return TheCU; }
|
||||
enum ComplexAddrKind { OpPlus=1, OpDeref };
|
||||
|
||||
/// finalize - Construct any deferred debug info descriptors.
|
||||
@ -103,10 +102,11 @@ namespace llvm {
|
||||
/// Objective-C.
|
||||
/// @param SplitName The name of the file that we'll split debug info out
|
||||
/// into.
|
||||
void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir,
|
||||
StringRef Producer, bool isOptimized,
|
||||
StringRef Flags, unsigned RV,
|
||||
StringRef SplitName = StringRef());
|
||||
DICompileUnit createCompileUnit(unsigned Lang, StringRef File,
|
||||
StringRef Dir, StringRef Producer,
|
||||
bool isOptimized, StringRef Flags,
|
||||
unsigned RV,
|
||||
StringRef SplitName = StringRef());
|
||||
|
||||
/// createFile - Create a file descriptor to hold debugging information
|
||||
/// for a file.
|
||||
|
Reference in New Issue
Block a user