[llvm-commits] [llvm-gcc-4.2] r76444 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Chris Lattner
sabre at nondot.org
Mon Jul 20 10:57:41 PDT 2009
Author: lattner
Date: Mon Jul 20 12:57:40 2009
New Revision: 76444
URL: http://llvm.org/viewvc/llvm-project?rev=76444&view=rev
Log:
use ExpandInlineAsm from TargetLowering instead of TargetAsmInfo.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=76444&r1=76443&r2=76444&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Mon Jul 20 12:57:40 2009
@@ -39,6 +39,8 @@
#include "llvm/System/Host.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Target/TargetAsmInfo.h"
+#undef RET
+#include "llvm/Target/TargetLowering.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/ADT/StringExtras.h"
@@ -4589,8 +4591,8 @@
// Give the backend a chance to upgrade the inline asm to LLVM code. This
// handles some common cases that LLVM has intrinsics for, e.g. x86 bswap ->
// llvm.bswap.
- if (const TargetAsmInfo *TAI = TheTarget->getTargetAsmInfo())
- TAI->ExpandInlineAsm(CV);
+ if (const TargetLowering *TLI = TheTarget->getTargetLowering())
+ TLI->ExpandInlineAsm(CV);
if (NumChoices>1)
FreeConstTupleStrings(ReplacementStrings, NumInputs+NumOutputs);
More information about the llvm-commits
mailing list