80-column and trailing whitespace cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2010-06-25 21:02:24 +00:00
parent 8c605c601d
commit ee278437e6

View File

@ -197,11 +197,11 @@ public:
/// Get any module-scope inline assembly blocks. /// Get any module-scope inline assembly blocks.
/// @returns a string containing the module-scope inline assembly blocks. /// @returns a string containing the module-scope inline assembly blocks.
const std::string &getModuleInlineAsm() const { return GlobalScopeAsm; } const std::string &getModuleInlineAsm() const { return GlobalScopeAsm; }
/// @} /// @}
/// @name Module Level Mutators /// @name Module Level Mutators
/// @{ /// @{
/// Set the module identifier. /// Set the module identifier.
void setModuleIdentifier(StringRef ID) { ModuleID = ID; } void setModuleIdentifier(StringRef ID) { ModuleID = ID; }
@ -235,12 +235,12 @@ public:
/// getMDKindID - Return a unique non-zero ID for the specified metadata kind. /// getMDKindID - Return a unique non-zero ID for the specified metadata kind.
/// This ID is uniqued across modules in the current LLVMContext. /// This ID is uniqued across modules in the current LLVMContext.
unsigned getMDKindID(StringRef Name) const; unsigned getMDKindID(StringRef Name) const;
/// getMDKindNames - Populate client supplied SmallVector with the name for /// getMDKindNames - Populate client supplied SmallVector with the name for
/// custom metadata IDs registered in this LLVMContext. ID #0 is not used, /// custom metadata IDs registered in this LLVMContext. ID #0 is not used,
/// so it is filled in as an empty string. /// so it is filled in as an empty string.
void getMDKindNames(SmallVectorImpl<StringRef> &Result) const; void getMDKindNames(SmallVectorImpl<StringRef> &Result) const;
/// @} /// @}
/// @name Function Accessors /// @name Function Accessors
/// @{ /// @{
@ -277,7 +277,7 @@ public:
Constant *getOrInsertTargetIntrinsic(StringRef Name, Constant *getOrInsertTargetIntrinsic(StringRef Name,
const FunctionType *Ty, const FunctionType *Ty,
AttrListPtr AttributeList); AttrListPtr AttributeList);
/// getFunction - Look up the specified function in the module symbol table. /// getFunction - Look up the specified function in the module symbol table.
/// If it does not exist, return null. /// If it does not exist, return null.
Function *getFunction(StringRef Name) const; Function *getFunction(StringRef Name) const;
@ -321,14 +321,14 @@ public:
/// @} /// @}
/// @name Named Metadata Accessors /// @name Named Metadata Accessors
/// @{ /// @{
/// getNamedMetadata - Return the first NamedMDNode in the module with the /// getNamedMetadata - Return the first NamedMDNode in the module with the
/// specified name. This method returns null if a NamedMDNode with the /// specified name. This method returns null if a NamedMDNode with the
/// specified name is not found. /// specified name is not found.
NamedMDNode *getNamedMetadata(const Twine &Name) const; NamedMDNode *getNamedMetadata(const Twine &Name) const;
/// getOrInsertNamedMetadata - Return the first named MDNode in the module /// getOrInsertNamedMetadata - Return the first named MDNode in the module
/// with the specified name. This method returns a new NamedMDNode if a /// with the specified name. This method returns a new NamedMDNode if a
/// NamedMDNode with the specified name is not found. /// NamedMDNode with the specified name is not found.
NamedMDNode *getOrInsertNamedMetadata(StringRef Name); NamedMDNode *getOrInsertNamedMetadata(StringRef Name);
@ -515,15 +515,16 @@ public:
const_named_metadata_iterator named_metadata_begin() const { const_named_metadata_iterator named_metadata_begin() const {
return NamedMDList.begin(); return NamedMDList.begin();
} }
/// Get an iterator to the last named metadata. /// Get an iterator to the last named metadata.
named_metadata_iterator named_metadata_end() { return NamedMDList.end(); } named_metadata_iterator named_metadata_end() { return NamedMDList.end(); }
/// Get a constant iterator to the last named metadata. /// Get a constant iterator to the last named metadata.
const_named_metadata_iterator named_metadata_end() const { const_named_metadata_iterator named_metadata_end() const {
return NamedMDList.end(); return NamedMDList.end();
} }
/// Determine how many NamedMDNodes are in the Module's list of named metadata. /// Determine how many NamedMDNodes are in the Module's list of named
/// metadata.
size_t named_metadata_size() const { return NamedMDList.size(); } size_t named_metadata_size() const { return NamedMDList.size(); }
/// Determine if the list of named metadata is empty. /// Determine if the list of named metadata is empty.
bool named_metadata_empty() const { return NamedMDList.empty(); } bool named_metadata_empty() const { return NamedMDList.empty(); }
@ -535,7 +536,7 @@ public:
/// Print the module to an output stream with AssemblyAnnotationWriter. /// Print the module to an output stream with AssemblyAnnotationWriter.
void print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const; void print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const;
/// Dump the module to stderr (for debugging). /// Dump the module to stderr (for debugging).
void dump() const; void dump() const;
/// This function causes all the subinstructions to "let go" of all references /// This function causes all the subinstructions to "let go" of all references