Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: src/IceTargetLowering.cpp

Issue 1397933002: Start incorporating the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up code. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index 9a8a02ab9ed504efbe3652ca78ae16d2bcfaf6ba..8d67e8b9f68c99d9c280c4df6554f63c5ee922dd 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -113,7 +113,7 @@ std::unique_ptr<Assembler> TargetLowering::createAssembler(TargetArch Target,
Cfg *Func) {
#define SUBZERO_TARGET(X) \
if (Target == Target_##X) \
- return std::unique_ptr<Assembler>(new X::Assembler##X());
+ return std::unique_ptr<Assembler>(new X::Assembler##X(Func->getContext()));
Jim Stichnoth 2015/10/08 23:50:41 Can you use Ctx instead of Func->getContext() ?
Karl 2015/10/09 19:08:18 No. This is a static member function.
#include "llvm/Config/SZTargets.def"
Func->setError("Unsupported target assembler");

Powered by Google App Engine
This is Rietveld 408576698