summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-08-12 18:10:19 +0000
committerDevang Patel <dpatel@apple.com>2011-08-12 18:10:19 +0000
commitcd9f6c53de95f5301c0152cab2ccc78d653d6270 (patch)
tree72dba255be6881635fb4af3a6fa08b16d5cafed6 /include/llvm/CodeGen
parent0285e7d1c14746865a4ef772fec98370a3543a5b (diff)
downloadllvm-cd9f6c53de95f5301c0152cab2ccc78d653d6270.tar.gz
llvm-cd9f6c53de95f5301c0152cab2ccc78d653d6270.tar.bz2
llvm-cd9f6c53de95f5301c0152cab2ccc78d653d6270.tar.xz
Use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/LexicalScopes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LexicalScopes.h b/include/llvm/CodeGen/LexicalScopes.h
index ccbd6dae6c..709681b982 100644
--- a/include/llvm/CodeGen/LexicalScopes.h
+++ b/include/llvm/CodeGen/LexicalScopes.h
@@ -18,6 +18,7 @@
#define LLVM_CODEGEN_LEXICALSCOPES_H
#include "llvm/Metadata.h"
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
@@ -79,7 +80,7 @@ public:
LexicalScope *findLexicalScope(DebugLoc DL);
/// getAbstractScopesList - Return a reference to list of abstract scopes.
- SmallVector<LexicalScope *, 4> &getAbstractScopesList() {
+ ArrayRef<LexicalScope *> getAbstractScopesList() const {
return AbstractScopesList;
}