projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b022e
)
Fix AVR build after 777180a32b6107
author
Nico Weber
<thakis@chromium.org>
Wed, 29 Jan 2020 00:22:22 +0000
(19:22 -0500)
committer
Nico Weber
<thakis@chromium.org>
Wed, 29 Jan 2020 00:22:22 +0000
(19:22 -0500)
llvm/lib/Target/AVR/AVRTargetMachine.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AVR/AVRTargetMachine.cpp
b/llvm/lib/Target/AVR/AVRTargetMachine.cpp
index
b33284b
..
0c7136e
100644
(file)
--- a/
llvm/lib/Target/AVR/AVRTargetMachine.cpp
+++ b/
llvm/lib/Target/AVR/AVRTargetMachine.cpp
@@
-49,7
+49,7
@@
AVRTargetMachine::AVRTargetMachine(const Target &T, const Triple &TT,
: LLVMTargetMachine(T, AVRDataLayout, TT, getCPU(CPU), FS, Options,
getEffectiveRelocModel(RM),
getEffectiveCodeModel(CM, CodeModel::Small), OL),
- SubTarget(TT,
getCPU(CPU), FS
, *this) {
+ SubTarget(TT,
std::string(getCPU(CPU)), std::string(FS)
, *this) {
this->TLOF = std::make_unique<AVRTargetObjectFile>();
initAsmInfo();
}