diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-06-27 00:56:36 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-06-27 00:56:36 +0000 |
| commit | ecc696f1491bc35db26cb0e10bd016f8d98e79e6 (patch) | |
| tree | 8495183ce0657d213ddca02ef8a6f443ef529dbb /include | |
| parent | e15b119252ef67b84346bf18fd32365834d62602 (diff) | |
| download | external_llvm-ecc696f1491bc35db26cb0e10bd016f8d98e79e6.zip external_llvm-ecc696f1491bc35db26cb0e10bd016f8d98e79e6.tar.gz external_llvm-ecc696f1491bc35db26cb0e10bd016f8d98e79e6.tar.bz2 | |
- Remove a use of std::vector.
- Make sure that we're not recalculating the size of a vector
that never changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/CodeGen/MachineDebugInfoDesc.h | 46 | ||||
| -rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 2 |
2 files changed, 25 insertions, 23 deletions
diff --git a/include/llvm/CodeGen/MachineDebugInfoDesc.h b/include/llvm/CodeGen/MachineDebugInfoDesc.h index a79a121..926733f 100644 --- a/include/llvm/CodeGen/MachineDebugInfoDesc.h +++ b/include/llvm/CodeGen/MachineDebugInfoDesc.h @@ -407,10 +407,10 @@ public: SubrangeDesc(); // Accessors - int64_t getLo() const { return Lo; } - int64_t getHi() const { return Hi; } - void setLo(int64_t L) { Lo = L; } - void setHi(int64_t H) { Hi = H; } + int64_t getLo() const { return Lo; } + int64_t getHi() const { return Hi; } + void setLo(int64_t L) { Lo = L; } + void setHi(int64_t H) { Hi = H; } /// ApplyToFields - Target the visitor to the fields of the SubrangeDesc. /// @@ -552,32 +552,34 @@ protected: explicit GlobalDesc(unsigned T); public: // Accessors - DebugInfoDesc *getContext() const { return Context; } - const std::string &getName() const { return Name; } - const std::string &getFullName() const { return FullName; } - const std::string &getLinkageName() const { return LinkageName; } + DebugInfoDesc *getContext() const { return Context; } + const std::string &getName() const { return Name; } + const std::string &getFullName() const { return FullName; } + const std::string &getLinkageName() const { return LinkageName; } CompileUnitDesc *getFile() const { return static_cast<CompileUnitDesc *>(File); } - unsigned getLine() const { return Line; } + unsigned getLine() const { return Line; } TypeDesc *getType() const { return static_cast<TypeDesc *>(TyDesc); } - bool isStatic() const { return IsStatic; } - bool isDefinition() const { return IsDefinition; } - void setContext(DebugInfoDesc *C) { Context = C; } - void setName(const std::string &N) { Name = N; } - void setFullName(const std::string &N) { FullName = N; } - void setLinkageName(const std::string &N) { LinkageName = N; } + + bool isStatic() const { return IsStatic; } + bool isDefinition() const { return IsDefinition; } + + void setContext(DebugInfoDesc *C) { Context = C; } + void setName(const std::string &N) { Name = N; } + void setFullName(const std::string &N) { FullName = N; } + void setLinkageName(const std::string &N) { LinkageName = N; } void setFile(CompileUnitDesc *U) { File = static_cast<DebugInfoDesc *>(U); } - void setLine(unsigned L) { Line = L; } + void setLine(unsigned L) { Line = L; } void setType(TypeDesc *T) { TyDesc = static_cast<DebugInfoDesc *>(T); } - void setIsStatic(bool IS) { IsStatic = IS; } - void setIsDefinition(bool ID) { IsDefinition = ID; } + void setIsStatic(bool IS) { IsStatic = IS; } + void setIsDefinition(bool ID) { IsDefinition = ID; } /// ApplyToFields - Target the visitor to the fields of the GlobalDesc. /// @@ -593,8 +595,8 @@ public: GlobalVariableDesc(); // Accessors. - GlobalVariable *getGlobalVariable() const { return Global; } - void setGlobalVariable(GlobalVariable *GV) { Global = GV; } + GlobalVariable *getGlobalVariable() const { return Global; } + void setGlobalVariable(GlobalVariable *GV) { Global = GV; } /// ApplyToFields - Target the visitor to the fields of the /// GlobalVariableDesc. @@ -673,8 +675,8 @@ public: BlockDesc(); // Accessors - DebugInfoDesc *getContext() const { return Context; } - void setContext(DebugInfoDesc *C) { Context = C; } + DebugInfoDesc *getContext() const { return Context; } + void setContext(DebugInfoDesc *C) { Context = C; } /// ApplyToFields - Target the visitor to the fields of the BlockDesc. /// diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 5b27da1..748dfd6 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -591,7 +591,7 @@ public: /// getFilterIDFor - Return the id of the filter encoded by TyIds. This is /// function wide. - int getFilterIDFor(std::vector<unsigned> &TyIds); + int getFilterIDFor(SmallVectorImpl<unsigned> &TyIds); /// TidyLandingPads - Remap landing pad labels and remove any deleted landing /// pads. |
