summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
authorAndy Gibbs <andyg1001@hotmail.co.uk>2013-04-12 10:56:28 +0000
committerAndy Gibbs <andyg1001@hotmail.co.uk>2013-04-12 10:56:28 +0000
commit200241e4de11981523b3d14f3acab6129efed701 (patch)
tree265e6f10406344d11ebacd61bcb9d6a261a15c82 /tools/llc
parent71c1b228552ece06003d744b815f669dbfbb0772 (diff)
downloadllvm-200241e4de11981523b3d14f3acab6129efed701.tar.gz
llvm-200241e4de11981523b3d14f3acab6129efed701.tar.bz2
llvm-200241e4de11981523b3d14f3acab6129efed701.tar.xz
Replace uses of the deprecated std::auto_ptr with OwningPtr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 1dce9d7b60..8a462c608a 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -200,7 +200,7 @@ int main(int argc, char **argv) {
static int compileModule(char **argv, LLVMContext &Context) {
// Load the module to be compiled...
SMDiagnostic Err;
- std::auto_ptr<Module> M;
+ OwningPtr<Module> M;
Module *mod = 0;
Triple TheTriple;
@@ -281,7 +281,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
Options.UseInitArray = UseInitArray;
Options.SSPBufferSize = SSPBufferSize;
- std::auto_ptr<TargetMachine>
+ OwningPtr<TargetMachine>
target(TheTarget->createTargetMachine(TheTriple.getTriple(),
MCPU, FeaturesStr, Options,
RelocModel, CMModel, OLvl));