summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-09-21 05:32:41 +0000
committerCraig Topper <craig.topper@gmail.com>2015-09-21 05:32:41 +0000
commit0013be16fff27ce7744210007e08ed7528212c65 (patch)
tree623d42291b99ad1b5a7972fca60ec30e7b6d235d /llvm/lib/MC/MCDwarf.cpp
parent18929c50694220481b53784dad9e7a5a7aaec919 (diff)
downloadbcm5719-llvm-0013be16fff27ce7744210007e08ed7528212c65.tar.gz
bcm5719-llvm-0013be16fff27ce7744210007e08ed7528212c65.zip
Use makeArrayRef or None to avoid unnecessarily mentioning the ArrayRef type extra times. NFC
llvm-svn: 248140
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index 2d8912b71f1..9ab8319f4c8 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -221,8 +221,8 @@ MCDwarfLineTableHeader::Emit(MCStreamer *MCOS,
};
assert(array_lengthof(StandardOpcodeLengths) >=
(Params.DWARF2LineOpcodeBase - 1U));
- return Emit(MCOS, Params, ArrayRef<char>(StandardOpcodeLengths,
- Params.DWARF2LineOpcodeBase - 1));
+ return Emit(MCOS, Params, makeArrayRef(StandardOpcodeLengths,
+ Params.DWARF2LineOpcodeBase - 1));
}
static const MCExpr *forceExpAbs(MCStreamer &OS, const MCExpr* Expr) {
OpenPOWER on IntegriCloud