Reformat and nuke trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179880 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-04-19 20:37:09 +00:00
parent 2f445be5a7
commit 32dc092351

View File

@ -7,7 +7,7 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// //
// This file defines a DIBuilder that is useful for creating debugging // This file defines a DIBuilder that is useful for creating debugging
// information entries in LLVM IR form. // information entries in LLVM IR form.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
@ -82,18 +82,18 @@ namespace llvm {
/// @param Lang Source programming language, eg. dwarf::DW_LANG_C99 /// @param Lang Source programming language, eg. dwarf::DW_LANG_C99
/// @param File File name /// @param File File name
/// @param Dir Directory /// @param Dir Directory
/// @param Producer String identify producer of debugging information. /// @param Producer String identify producer of debugging information.
/// Usuall this is a compiler version string. /// Usuall this is a compiler version string.
/// @param isOptimized A boolean flag which indicates whether optimization /// @param isOptimized A boolean flag which indicates whether optimization
/// is ON or not. /// is ON or not.
/// @param Flags This string lists command line options. This string is /// @param Flags This string lists command line options. This string is
/// directly embedded in debug info output which may be used /// directly embedded in debug info output which may be used
/// by a tool analyzing generated debugging information. /// by a tool analyzing generated debugging information.
/// @param RV This indicates runtime version for languages like /// @param RV This indicates runtime version for languages like
/// Objective-C. /// Objective-C.
/// @param SplitName The name of the file that we'll split debug info out /// @param SplitName The name of the file that we'll split debug info out
/// into. /// into.
void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir, void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir,
StringRef Producer, bool isOptimized, StringRef Producer, bool isOptimized,
StringRef Flags, unsigned RV, StringRef Flags, unsigned RV,
StringRef SplitName = StringRef()); StringRef SplitName = StringRef());
@ -101,14 +101,14 @@ namespace llvm {
/// createFile - Create a file descriptor to hold debugging information /// createFile - Create a file descriptor to hold debugging information
/// for a file. /// for a file.
DIFile createFile(StringRef Filename, StringRef Directory); DIFile createFile(StringRef Filename, StringRef Directory);
/// createEnumerator - Create a single enumerator value. /// createEnumerator - Create a single enumerator value.
DIEnumerator createEnumerator(StringRef Name, uint64_t Val); DIEnumerator createEnumerator(StringRef Name, uint64_t Val);
/// createNullPtrType - Create C++0x nullptr type. /// createNullPtrType - Create C++0x nullptr type.
DIType createNullPtrType(StringRef Name); DIType createNullPtrType(StringRef Name);
/// createBasicType - Create debugging information entry for a basic /// createBasicType - Create debugging information entry for a basic
/// type. /// type.
/// @param Name Type name. /// @param Name Type name.
/// @param SizeInBits Size of the type. /// @param SizeInBits Size of the type.
@ -158,7 +158,7 @@ namespace llvm {
/// @param Ty Original type. /// @param Ty Original type.
/// @param BaseTy Base type. Ty is inherits from base. /// @param BaseTy Base type. Ty is inherits from base.
/// @param BaseOffset Base offset. /// @param BaseOffset Base offset.
/// @param Flags Flags to describe inheritance attribute, /// @param Flags Flags to describe inheritance attribute,
/// e.g. private /// e.g. private
DIDerivedType createInheritance(DIType Ty, DIType BaseTy, DIDerivedType createInheritance(DIType Ty, DIType BaseTy,
uint64_t BaseOffset, unsigned Flags); uint64_t BaseOffset, unsigned Flags);
@ -209,8 +209,8 @@ namespace llvm {
/// selector. /// selector.
/// @param PropertyAttributes Objective C property attributes. /// @param PropertyAttributes Objective C property attributes.
DIType createObjCIVar(StringRef Name, DIFile File, DIType createObjCIVar(StringRef Name, DIFile File,
unsigned LineNo, uint64_t SizeInBits, unsigned LineNo, uint64_t SizeInBits,
uint64_t AlignInBits, uint64_t OffsetInBits, uint64_t AlignInBits, uint64_t OffsetInBits,
unsigned Flags, DIType Ty, unsigned Flags, DIType Ty,
StringRef PropertyName = StringRef(), StringRef PropertyName = StringRef(),
StringRef PropertyGetterName = StringRef(), StringRef PropertyGetterName = StringRef(),
@ -229,8 +229,8 @@ namespace llvm {
/// @param Ty Parent type. /// @param Ty Parent type.
/// @param PropertyNode Property associated with this ivar. /// @param PropertyNode Property associated with this ivar.
DIType createObjCIVar(StringRef Name, DIFile File, DIType createObjCIVar(StringRef Name, DIFile File,
unsigned LineNo, uint64_t SizeInBits, unsigned LineNo, uint64_t SizeInBits,
uint64_t AlignInBits, uint64_t OffsetInBits, uint64_t AlignInBits, uint64_t OffsetInBits,
unsigned Flags, DIType Ty, unsigned Flags, DIType Ty,
MDNode *PropertyNode); MDNode *PropertyNode);
@ -249,7 +249,7 @@ namespace llvm {
StringRef SetterName, StringRef SetterName,
unsigned PropertyAttributes, unsigned PropertyAttributes,
DIType Ty); DIType Ty);
/// createClassType - Create debugging information entry for a class. /// createClassType - Create debugging information entry for a class.
/// @param Scope Scope in which this class is defined. /// @param Scope Scope in which this class is defined.
/// @param Name class name. /// @param Name class name.
@ -261,7 +261,7 @@ namespace llvm {
/// @param Flags Flags to encode member attribute, e.g. private /// @param Flags Flags to encode member attribute, e.g. private
/// @param Elements class members. /// @param Elements class members.
/// @param VTableHolder Debug info of the base class that contains vtable /// @param VTableHolder Debug info of the base class that contains vtable
/// for this type. This is used in /// for this type. This is used in
/// DW_AT_containing_type. See DWARF documentation /// DW_AT_containing_type. See DWARF documentation
/// for more info. /// for more info.
/// @param TemplateParms Template type parameters. /// @param TemplateParms Template type parameters.
@ -346,7 +346,7 @@ namespace llvm {
/// @param AlignInBits Alignment. /// @param AlignInBits Alignment.
/// @param Ty Element type. /// @param Ty Element type.
/// @param Subscripts Subscripts. /// @param Subscripts Subscripts.
DIType createVectorType(uint64_t Size, uint64_t AlignInBits, DIType createVectorType(uint64_t Size, uint64_t AlignInBits,
DIType Ty, DIArray Subscripts); DIType Ty, DIArray Subscripts);
/// createEnumerationType - Create debugging information entry for an /// createEnumerationType - Create debugging information entry for an
@ -359,10 +359,12 @@ namespace llvm {
/// @param AlignInBits Member alignment. /// @param AlignInBits Member alignment.
/// @param Elements Enumeration elements. /// @param Elements Enumeration elements.
/// @param UnderlyingType Underlying type of a C++11/ObjC fixed enum. /// @param UnderlyingType Underlying type of a C++11/ObjC fixed enum.
DICompositeType createEnumerationType( DICompositeType createEnumerationType(DIDescriptor Scope, StringRef Name,
DIDescriptor Scope, StringRef Name, DIFile File, unsigned LineNumber, DIFile File, unsigned LineNumber,
uint64_t SizeInBits, uint64_t AlignInBits, DIArray Elements, uint64_t SizeInBits,
DIType UnderlyingType); uint64_t AlignInBits,
DIArray Elements,
DIType UnderlyingType);
/// createSubroutineType - Create subroutine type. /// createSubroutineType - Create subroutine type.
/// @param File File in which this subroutine is defined. /// @param File File in which this subroutine is defined.
@ -382,7 +384,7 @@ namespace llvm {
DIFile F, unsigned Line, unsigned RuntimeLang = 0, DIFile F, unsigned Line, unsigned RuntimeLang = 0,
uint64_t SizeInBits = 0, uint64_t AlignInBits = 0); uint64_t SizeInBits = 0, uint64_t AlignInBits = 0);
/// retainType - Retain DIType in a module even if it is not referenced /// retainType - Retain DIType in a module even if it is not referenced
/// through debug info anchors. /// through debug info anchors.
void retainType(DIType T); void retainType(DIType T);
@ -423,7 +425,7 @@ namespace llvm {
unsigned LineNo, DIType Ty, bool isLocalToUnit, unsigned LineNo, DIType Ty, bool isLocalToUnit,
llvm::Value *Val); llvm::Value *Val);
/// createStaticVariable - Create a new descriptor for the specified /// createStaticVariable - Create a new descriptor for the specified
/// variable. /// variable.
/// @param Context Variable scope. /// @param Context Variable scope.
/// @param Name Name of the variable. /// @param Name Name of the variable.
@ -436,13 +438,13 @@ namespace llvm {
/// @param Val llvm::Value of the variable. /// @param Val llvm::Value of the variable.
/// @param Decl Reference to the corresponding declaration. /// @param Decl Reference to the corresponding declaration.
DIGlobalVariable DIGlobalVariable
createStaticVariable(DIDescriptor Context, StringRef Name, createStaticVariable(DIDescriptor Context, StringRef Name,
StringRef LinkageName, DIFile File, unsigned LineNo, StringRef LinkageName, DIFile File, unsigned LineNo,
DIType Ty, bool isLocalToUnit, llvm::Value *Val, DIType Ty, bool isLocalToUnit, llvm::Value *Val,
MDNode *Decl = NULL); MDNode *Decl = NULL);
/// createLocalVariable - Create a new descriptor for the specified /// createLocalVariable - Create a new descriptor for the specified
/// local variable. /// local variable.
/// @param Tag Dwarf TAG. Usually DW_TAG_auto_variable or /// @param Tag Dwarf TAG. Usually DW_TAG_auto_variable or
/// DW_TAG_arg_variable. /// DW_TAG_arg_variable.
@ -519,7 +521,7 @@ namespace llvm {
/// @param Ty Function type. /// @param Ty Function type.
/// @param isLocalToUnit True if this function is not externally visible.. /// @param isLocalToUnit True if this function is not externally visible..
/// @param isDefinition True if this is a function definition. /// @param isDefinition True if this is a function definition.
/// @param Virtuality Attributes describing virtualness. e.g. pure /// @param Virtuality Attributes describing virtualness. e.g. pure
/// virtual function. /// virtual function.
/// @param VTableIndex Index no of this method in virtual table. /// @param VTableIndex Index no of this method in virtual table.
/// @param VTableHolder Type that holds vtable. /// @param VTableHolder Type that holds vtable.
@ -557,7 +559,7 @@ namespace llvm {
/// @param File Source file. /// @param File Source file.
DILexicalBlockFile createLexicalBlockFile(DIDescriptor Scope, DILexicalBlockFile createLexicalBlockFile(DIDescriptor Scope,
DIFile File); DIFile File);
/// createLexicalBlock - This creates a descriptor for a lexical block /// createLexicalBlock - This creates a descriptor for a lexical block
/// with the specified parent context. /// with the specified parent context.
/// @param Scope Parent lexical scope. /// @param Scope Parent lexical scope.
@ -588,16 +590,16 @@ namespace llvm {
/// @param VarInfo Variable's debug info descriptor. /// @param VarInfo Variable's debug info descriptor.
/// @param InsertAtEnd Location for the new intrinsic. /// @param InsertAtEnd Location for the new intrinsic.
Instruction *insertDbgValueIntrinsic(llvm::Value *Val, uint64_t Offset, Instruction *insertDbgValueIntrinsic(llvm::Value *Val, uint64_t Offset,
DIVariable VarInfo, DIVariable VarInfo,
BasicBlock *InsertAtEnd); BasicBlock *InsertAtEnd);
/// insertDbgValueIntrinsic - Insert a new llvm.dbg.value intrinsic call. /// insertDbgValueIntrinsic - Insert a new llvm.dbg.value intrinsic call.
/// @param Val llvm::Value of the variable /// @param Val llvm::Value of the variable
/// @param Offset Offset /// @param Offset Offset
/// @param VarInfo Variable's debug info descriptor. /// @param VarInfo Variable's debug info descriptor.
/// @param InsertBefore Location for the new intrinsic. /// @param InsertBefore Location for the new intrinsic.
Instruction *insertDbgValueIntrinsic(llvm::Value *Val, uint64_t Offset, Instruction *insertDbgValueIntrinsic(llvm::Value *Val, uint64_t Offset,
DIVariable VarInfo, DIVariable VarInfo,
Instruction *InsertBefore); Instruction *InsertBefore);
}; };