diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-12 10:56:28 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-12 10:56:28 +0000 |
commit | 95777550a977f970c0a9b92a5428c988f2f7db36 (patch) | |
tree | 4758ee8daa4394aabaa4d7af932dd3fc0cce9a85 /llvm/tools/llc | |
parent | 92a31305099285290f11bed8b444d121c3fbfee3 (diff) | |
download | bcm5719-llvm-95777550a977f970c0a9b92a5428c988f2f7db36.tar.gz bcm5719-llvm-95777550a977f970c0a9b92a5428c988f2f7db36.zip |
Replace uses of the deprecated std::auto_ptr with OwningPtr.
llvm-svn: 179373
Diffstat (limited to 'llvm/tools/llc')
-rw-r--r-- | llvm/tools/llc/llc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index 1dce9d7b601..8a462c608a8 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/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)); |