Handle variable arguments for ARM/Mips/X86.
Expand va_arg LLVM instruction in a target-specific manner.
Change-Id: Iddf071b7f4026f003df2ad129fd940c506e9ec99
diff --git a/lib/AndroidBitcode/ABCCompilerDriver.cpp b/lib/AndroidBitcode/ABCCompilerDriver.cpp
index f8ddfc4..4eb33e6 100644
--- a/lib/AndroidBitcode/ABCCompilerDriver.cpp
+++ b/lib/AndroidBitcode/ABCCompilerDriver.cpp
@@ -17,6 +17,7 @@
#include "bcc/AndroidBitcode/ABCCompilerDriver.h"
#include <llvm/Module.h>
+#include <llvm/Pass.h>
#include <llvm/Support/MemoryBuffer.h>
#include <llvm/Support/raw_ostream.h>
#include <mcld/Config/Config.h>
@@ -44,7 +45,7 @@
namespace bcc {
ABCCompilerDriver::ABCCompilerDriver(const std::string &pTriple)
- : mContext(), mCompiler(), mLinker(),
+ : mContext(), mCompiler(*this), mLinker(),
mCompilerConfig(NULL), mLinkerConfig(NULL),
mTriple(pTriple), mAndroidSysroot("/") {
}