summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-24 10:11:03 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-24 10:11:03 +0000
commitdbf81d8ddfed9482a36609469bf84667044928e4 (patch)
tree20759e16e73a65501599831ea97b3422b48826ae /llvm/include
parentf76759c6faba636f8af81ed5961cd7683eca32bb (diff)
downloadbcm5719-llvm-dbf81d8ddfed9482a36609469bf84667044928e4.tar.gz
bcm5719-llvm-dbf81d8ddfed9482a36609469bf84667044928e4.zip
PR9214: Convert the DIBuilder API to use ArrayRef.
llvm-svn: 130086
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/DIBuilder.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/Analysis/DIBuilder.h b/llvm/include/llvm/Analysis/DIBuilder.h
index 9c7d6ffa466..5846dbff041 100644
--- a/llvm/include/llvm/Analysis/DIBuilder.h
+++ b/llvm/include/llvm/Analysis/DIBuilder.h
@@ -16,6 +16,7 @@
#define LLVM_ANALYSIS_DIBUILDER_H
#include "llvm/Support/DataTypes.h"
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
namespace llvm {
@@ -302,7 +303,7 @@ namespace llvm {
DIDescriptor createUnspecifiedParameter();
/// getOrCreateArray - Get a DIArray, create one if required.
- DIArray getOrCreateArray(Value *const *Elements, unsigned NumElements);
+ DIArray getOrCreateArray(ArrayRef<Value *> Elements);
/// getOrCreateSubrange - Create a descriptor for a value range. This
/// implicitly uniques the values returned.
@@ -369,14 +370,13 @@ namespace llvm {
/// @param File File where this variable is defined.
/// @param LineNo Line number.
/// @param Ty Variable Type
- /// @param Addr A pointer to a vector of complex address operations.
- /// @param NumAddr Num of address operations in the vector.
+ /// @param Addr An array of complex address operations.
/// @param ArgNo If this variable is an arugment then this argument's
/// number. 1 indicates 1st argument.
DIVariable createComplexVariable(unsigned Tag, DIDescriptor Scope,
StringRef Name, DIFile F, unsigned LineNo,
- DIType Ty, Value *const *Addr,
- unsigned NumAddr, unsigned ArgNo = 0);
+ DIType Ty, ArrayRef<Value *> Addr,
+ unsigned ArgNo = 0);
/// createFunction - Create a new descriptor for the specified subprogram.
/// See comments in DISubprogram for descriptions of these fields.
OpenPOWER on IntegriCloud