mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 05:12:20 +00:00
Use an ArrayRef instead of a std::vector&.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8293b7b8b1
commit
0439f3e0cf
@ -15,7 +15,7 @@
|
||||
#ifndef LLVM_TRANSFORMS_IPO_H
|
||||
#define LLVM_TRANSFORMS_IPO_H
|
||||
|
||||
#include <vector>
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -109,7 +109,7 @@ Pass *createPruneEHPass();
|
||||
///
|
||||
/// Note that commandline options that are used with the above function are not
|
||||
/// used now!
|
||||
ModulePass *createInternalizePass(const std::vector<const char *> &exportList);
|
||||
ModulePass *createInternalizePass(ArrayRef<const char *> exportList);
|
||||
/// createInternalizePass - Same as above, but with an empty exportList.
|
||||
ModulePass *createInternalizePass();
|
||||
|
||||
|
@ -48,7 +48,7 @@ namespace {
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
explicit InternalizePass();
|
||||
explicit InternalizePass(const std::vector <const char *>& exportList);
|
||||
explicit InternalizePass(ArrayRef<const char *> exportList);
|
||||
void LoadFile(const char *Filename);
|
||||
virtual bool runOnModule(Module &M);
|
||||
|
||||
@ -72,10 +72,10 @@ InternalizePass::InternalizePass()
|
||||
ExternalNames.insert(APIList.begin(), APIList.end());
|
||||
}
|
||||
|
||||
InternalizePass::InternalizePass(const std::vector<const char *>&exportList)
|
||||
InternalizePass::InternalizePass(ArrayRef<const char *> exportList)
|
||||
: ModulePass(ID){
|
||||
initializeInternalizePassPass(*PassRegistry::getPassRegistry());
|
||||
for(std::vector<const char *>::const_iterator itr = exportList.begin();
|
||||
for(ArrayRef<const char *>::const_iterator itr = exportList.begin();
|
||||
itr != exportList.end(); itr++) {
|
||||
ExternalNames.insert(*itr);
|
||||
}
|
||||
@ -173,6 +173,6 @@ ModulePass *llvm::createInternalizePass() {
|
||||
return new InternalizePass();
|
||||
}
|
||||
|
||||
ModulePass *llvm::createInternalizePass(const std::vector <const char *> &el) {
|
||||
ModulePass *llvm::createInternalizePass(ArrayRef<const char *> el) {
|
||||
return new InternalizePass(el);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user