[llvm-commits] [llvm] r100287 - /llvm/trunk/tools/llvm-mc/llvm-mc.cpp
Chris Lattner
sabre at nondot.org
Sat Apr 3 14:03:50 PDT 2010
Author: lattner
Date: Sat Apr 3 16:03:50 2010
New Revision: 100287
URL: http://llvm.org/viewvc/llvm-project?rev=100287&view=rev
Log:
remove some extraneous casts
Modified:
llvm/trunk/tools/llvm-mc/llvm-mc.cpp
Modified: llvm/trunk/tools/llvm-mc/llvm-mc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/llvm-mc.cpp?rev=100287&r1=100286&r2=100287&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mc/llvm-mc.cpp (original)
+++ llvm/trunk/tools/llvm-mc/llvm-mc.cpp Sat Apr 3 16:03:50 2010
@@ -158,7 +158,7 @@
if (!TheTarget)
return 1;
- llvm::OwningPtr<MCAsmInfo> MAI((MCAsmInfo*) TheTarget->createAsmInfo(TripleName));
+ llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createAsmInfo(TripleName));
assert(MAI && "Unable to create target asm info!");
AsmLexer Lexer(*MAI);
@@ -266,7 +266,7 @@
SrcMgr.setIncludeDirs(IncludeDirs);
- llvm::OwningPtr<MCAsmInfo> MAI((MCAsmInfo*) TheTarget->createAsmInfo(TripleName));
+ llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createAsmInfo(TripleName));
assert(MAI && "Unable to create target asm info!");
MCContext Ctx(*MAI);
More information about the llvm-commits
mailing list